Hi I get a warning when compiling tfs 0.4 rev 3777, anyone know how to solve this?
Code:
game.cpp:80:24: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]
globalSaveMessage = false;
~~~~~~~~~~~~~~~~~~^~~~~~~
game.cpp:79:23: note: within this loop
for(int16_t i = 0; i < 3; i++)
~~^~~
game.h: In member function 'void Game::globalSave()':
game.h:613:78: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]
void setGlobalSaveMessage(int16_t key, bool value) {globalSaveMessage[key] = value;}
~~~~~~~~~~~~~~~~~~~~~~~^~~~
game.cpp:6180:23: note: within this loop
for(int16_t i = 0; i < 3; i++)
~~^~~