Quoted from DickHamill:I'm on a Mac. I tried compiling with 1.8.13 and 1.8.15, verbose compiler settings, no warnings or errors for Stars2020 or BlackJack2020.
In case you can spot anything helpful, here is my compile log for BlackJack2020 on 1.8.15:
Process of what I'm doing this morning.
1) Downloaded and installed 1.8.15 under Windows 10.
2) Downloaded FG2021.zip from github, unzipped to FG2021 folder.
3) Launched "C:\Program Files (x86)\Arduino\arduino.exe"
4) File-> Open -> FG2021.INO
5) Sketch -> Verify/Compile
Here is error list from Flash Gordon-
G:\nano\bsos-flash-gordon-2021-main_june\bsos-flash-gordon-2021-main\FG2021\FG2021.ino: In function 'int WizardMode(boolean)':
G:\nano\bsos-flash-gordon-2021-main_june\bsos-flash-gordon-2021-main\FG2021\FG2021.ino:2513:53: warning: return-statement with no value, in function returning 'int' [-fpermissive]
if (bonusFireworks<0 || bonusFireworks>9) return;
^~~~~~
G:\nano\bsos-flash-gordon-2021-main_june\bsos-flash-gordon-2021-main\FG2021\FG2021.ino:2487:68: warning: iteration 60 invokes undefined behavior [-Waggressive-loop-optimizations]
BSOS_SetLampState(AttractLampsMingAttack[lightcountdown].lightNumMingAttack, (dist<8), (dist==0/*||dist>5*/)?0:dist/3, (dist>5)?(100+AttractLampsMingAttack[lightcountdown].lightNumMingAttack):0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
G:\nano\bsos-flash-gordon-2021-main_june\bsos-flash-gordon-2021-main\FG2021\FG2021.ino:2485:51: note: within this loop
for (byte lightcountdown=0; lightcountdown<NUM_OF_ATTRACT_LAMPS_MING_ATTACK; lightcountdown++) {
G:\nano\bsos-flash-gordon-2021-main_june\bsos-flash-gordon-2021-main\FG2021\FG2021.ino: In function 'WizardMode':
G:\nano\bsos-flash-gordon-2021-main_june\bsos-flash-gordon-2021-main\FG2021\FG2021.ino:2487:68: warning: iteration 60 invokes undefined behavior [-Waggressive-loop-optimizations]
BSOS_SetLampState(AttractLampsMingAttack[lightcountdown].lightNumMingAttack, (dist<8), (dist==0/*||dist>5*/)?0:dist/3, (dist>5)?(100+AttractLampsMingAttack[lightcountdown].lightNumMingAttack):0);
^
G:\nano\bsos-flash-gordon-2021-main_june\bsos-flash-gordon-2021-main\FG2021\FG2021.ino:2485:51: note: within this loop
for (byte lightcountdown=0; lightcountdown<NUM_OF_ATTRACT_LAMPS_MING_ATTACK; lightcountdown++) {
^
Sketch uses 26324 bytes (81%) of program storage space. Maximum is 32256 bytes.
Global variables use 1341 bytes (65%) of dynamic memory, leaving 707 bytes for local variables. Maximum is 2048 bytes.