• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Warning when compiling Debian 10

pokouk

New Member
Joined
Feb 24, 2023
Messages
3
Reaction score
0
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++)
                     ~~^~~
 
Back
Top