SupSuper/OpenXcom — Issue #49: Few warnings that should be fixed
Author: scarabeusiv
Created: 2011-11-05 11:14:23+00:00
State: open

src/Basescape/ProductionState.h: In constructor ‘OpenXcom::ProductionState::ProductionState(OpenXcom::Game*, OpenXcom::Base*, OpenXcom::RuleManufactureInfo*)’:
src/Basescape/ProductionState.h:43:9: warning: ‘OpenXcom::ProductionState::_base’ will be initialized after [-Wreorder]
src/Basescape/ProductionState.h:42:24: warning: ‘OpenXcom::RuleManufactureInfo* OpenXcom::ProductionState::_item’ [-Wreorder]
src/Basescape/ProductionState.cpp:42:1: warning: when initialized here [-Wreorder]
src/Basescape/ProductionState.h:42:24: warning: ‘OpenXcom::ProductionState::_item’ will be initialized after [-Wreorder]
src/Basescape/ProductionState.h:41:15: warning: ‘OpenXcom::Production* OpenXcom::ProductionState::_production’ [-Wreorder]
src/Basescape/ProductionState.cpp:42:1: warning: when initialized here [-Wreorder]

src/Savegame/BattleItem.h: In constructor ‘OpenXcom::BattleItem::BattleItem(OpenXcom::RuleItem*, int*)’:
src/Savegame/BattleItem.h:51:20: warning: ‘OpenXcom::BattleItem::_ammoQuantity’ will be initialized after [-Wreorder]
src/Savegame/BattleItem.h:47:8: warning: ‘OpenXcom::Tile* OpenXcom::BattleItem::_tile’ [-Wreorder]
src/Savegame/BattleItem.cpp:32:1: warning: when initialized here [-Wreorder]
src/Savegame/BattleItem.h:47:8: warning: ‘OpenXcom::BattleItem::_tile’ will be initialized after [-Wreorder]
src/Savegame/BattleItem.h:46:14: warning: ‘OpenXcom::BattleUnit* OpenXcom::BattleItem::_unit’ [-Wreorder]
src/Savegame/BattleItem.cpp:32:1: warning: when initialized here [-Wreorder]

src/Savegame/SavedGame.h: In constructor ‘OpenXcom::SavedGame::SavedGame(OpenXcom::GameDifficulty)’:
src/Savegame/SavedGame.h:68:19: warning: ‘OpenXcom::SavedGame::_battleGame’ will be initialized after [-Wreorder]
src/Savegame/SavedGame.h:67:27: warning: ‘int OpenXcom::SavedGame::_soldierId’ [-Wreorder]
src/Savegame/SavedGame.cpp:87:1: warning: when initialized here [-Wreorder]
src/Savegame/Soldier.h: In constructor ‘OpenXcom::Soldier::Soldier(OpenXcom::RuleSoldier*, OpenXcom::RuleArmor*, const std::vector*, int*)’:
src/Savegame/Soldier.h:53:17: warning: ‘OpenXcom::Soldier::_kills’ will be initialized after [-Wreorder]
src/Savegame/Soldier.h:46:6: warning: ‘int OpenXcom::Soldier::_id’ [-Wreorder]
src/Savegame/Soldier.cpp:58:1: warning: when initialized here [-Wreorder]

src/Savegame/SavedBattleGame.cpp:84:15: warning: unused variable ‘size’ [-Wunused-variable]

src/Savegame/SavedBattleGame.cpp:161:29: warning: ‘aiState’ may be used uninitialized in this function [-Wuninitialized]

src/Ruleset/XcomRuleset.cpp: In constructor ‘OpenXcom::XcomRuleset::XcomRuleset()’:
src/Ruleset/XcomRuleset.cpp:66:1: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without

src/Battlescape/Camera.h: In constructor ‘OpenXcom::Camera::Camera(int, int, int, int, int, OpenXcom::Map*, int)’:
src/Battlescape/Camera.h:48:7: warning: ‘OpenXcom::Camera::_RMBDragging’ will be initialized after [-Wreorder]
src/Battlescape/Camera.h:42:6: warning: ‘int OpenXcom::Camera::_spriteWidth’ [-Wreorder]
src/Battlescape/Camera.cpp:35:1: warning: when initialized here [-Wreorder]
src/Battlescape/Camera.h:53:7: warning: ‘OpenXcom::Camera::_map’ will be initialized after [-Wreorder]
src/Battlescape/Camera.h:51:6: warning: ‘int OpenXcom::Camera::_visibleMapHeight’ [-Wreorder]
src/Battlescape/Camera.cpp:35:1: warning: when initialized here [-Wreorder]