Author: mordante
Date: Wed Aug 13 19:19:41 2008
New Revision: 28561
URL: http://svn.gna.org/viewcvs/wesnoth?rev=28561&view=rev
Log:
Initialize all members.
Modified:
trunk/src/gamestatus.cpp
Modified: trunk/src/gamestatus.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gamestatus.cpp?rev=28561&r1=28560&r2=28561&view=diff
==============================================================================
--- trunk/src/gamestatus.cpp (original)
+++ trunk/src/gamestatus.cpp Wed Aug 13 19:19:41 2008
@@ -1169,7 +1169,31 @@
gs_wmi.clear();
}
-game_state::game_state(const game_state& state) : variable_set(/*silences gcc
warning*/)
+game_state::game_state(const game_state& state) :
+ /* default construct everything to silence compiler warnings. */
+ variable_set(),
+ label(),
+ version(),
+ campaign_type(),
+ campaign_define(),
+ campaign_xtra_defines(),
+ campaign(),
+ history(),
+ abbrev(),
+ scenario(),
+ next_scenario(),
+ completion(),
+ players(),
+ scoped_variables(),
+ wml_menu_items(),
+ difficulty(),
+ replay_data(),
+ starting_pos(),
+ snapshot(),
+ last_selected(),
+ rng_(),
+ variables(),
+ temporaries()
{
*this = state;
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits