The last commit to Sheepshaver's src/video.cpp in June 2020 was intended to fix an error with gcc 10 by adding unsigned to the integer "work_id = ReadMacInt32(param + csPreviousDisplayModeID);" on line 736.
This now results in an error about an unsigned integer on line 744 for kDisplayModeIDFindFirstResolution when building with gcc 10:
../video.cpp: In function ‘int16 VideoStatus(uint32, VidLocals*)’:
../video.cpp:744:10: error: narrowing conversion of ‘kDisplayModeIDFindFirstResolution’ from ‘int’ to ‘unsigned int’ [-Wnarrowing]
744 | case kDisplayModeIDFindFirstResolution:
Reverting the change allowed SheepShaver to build and run with gcc 10:
The last commit to Sheepshaver's src/video.cpp in June 2020 was intended to fix an error with gcc 10 by adding unsigned to the integer "work_id = ReadMacInt32(param + csPreviousDisplayModeID);" on line 736.
This now results in an error about an unsigned integer on line 744 for kDisplayModeIDFindFirstResolution when building with gcc 10:
Reverting the change allowed SheepShaver to build and run with gcc 10: