Closed kfix closed 2 years ago
fixes this:
cc -Wall -DDEBUG -c -o build/debug/DDC.o src/DDC.c cc -Wall -DDEBUG -o bin/debug/ddcctl -lobjc -framework IOKit -framework AppKit -framework Foundation build/debug/DDC.o ./src/ddcctl.m ./src/ddcctl.m:412:38: warning: cast to smaller integer type 'CGDirectDisplayID' (aka 'unsigned int') from 'void * _Nullable' [-Wvoid-pointer-to-int-cast] CGDirectDisplayID cdisplay = (CGDirectDisplayID)[_displayIDs pointerAtIndex:displayId - 1]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated.
I guess it still works but my Big Sur 11.6.1 MBP2017 (AMD) isn't able to read VCPs on anything right now!
fixes this: