Author: brunowolff
Date: Wed Mar 19 16:47:32 2008
New Revision: 24823
URL: http://svn.gna.org/viewcvs/wesnoth?rev=24823&view=rev
Log:
Added a type name since gcc 4.3 doesn't seem to like anonymous typedefs.
But since one of the values was being used later as a constant, commenting
the typedef out was't the correct solution. This may still be a style issue,
but that is outside the scope of getting Wesnoth to build with gcc 4.3
without warnings.
Modified:
trunk/src/unit_animation.hpp
Modified: trunk/src/unit_animation.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_animation.hpp?rev=24823&r1=24822&r2=24823&view=diff
==============================================================================
--- trunk/src/unit_animation.hpp (original)
+++ trunk/src/unit_animation.hpp Wed Mar 19 16:47:32 2008
@@ -31,8 +31,7 @@
//! Shouldn't be used so only declared.
unit_animation();
public:
-/* Please check the following as no name is given to the type */
-/* typedef enum { MATCH_FAIL=-2 , DEFAULT_ANIM=-1}; */
+ typedef enum { MATCH_FAIL=-2 , DEFAULT_ANIM=-1} variation_type;
typedef enum { HIT, MISS, KILL, INVALID} hit_type;
static void fill_initial_animations(
std::vector<unit_animation> & animations, const config & cfg);
static void add_anims( std::vector<unit_animation> &
animations, const config & cfg);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits