binny
Member
- Joined
- Mar 16, 2017
- Messages
- 65
- Reaction score
- 12
This warnings errors show me when i try to compile my source code:
my game.cpp:
hastebin
my game.h
hastebin
What is it?
How to fix?[/code]
Code:
game.cpp: In constructor ‘Game::Game()’:
game.cpp:80:31: warning: iteration 2u invokes undefined behavior [-Waggressive-loop-optimizations]
globalSaveMessage[i] = false;
^
game.cpp:79:23: note: containing loop
for(int32_t i = 0; i < 3; i++)
^
In file included from game.cpp:18:0:
game.h: In member function ‘void Game::globalSave()’:
game.h:616:85: warning: iteration 2u invokes undefined behavior [-Waggressive-loop-optimizations]
setGlobalSaveMessage(int16_t key, bool value) {globalSaveMessage[key] = value;}
^
game.cpp:6340:23: note: containing loop
for(int16_t i = 0; i < 3; i++)
^
my game.cpp:
hastebin
my game.h
hastebin
What is it?
How to fix?[/code]