Author: esr Date: Fri Jun 22 16:46:12 2007 New Revision: 18386 URL: http://svn.gna.org/viewcvs/wesnoth?rev=18386&view=rev Log: Bring back UNUSED, it's going to be needed for some stub functions.
Modified: trunk/src/global.hpp Modified: trunk/src/global.hpp URL: http://svn.gna.org/viewcvs/wesnoth/trunk/src/global.hpp?rev=18386&r1=18385&r2=18386&view=diff ============================================================================== --- trunk/src/global.hpp (original) +++ trunk/src/global.hpp Fri Jun 22 16:46:12 2007 @@ -57,4 +57,11 @@ #endif +/* Macro for declaring function arguments unused. */ +#if defined(__GNUC__) +# define UNUSED __attribute__((unused)) /* Flag variable as unused */ +#else /* not __GNUC__ */ +# define UNUSED #endif + +#endif _______________________________________________ Wesnoth-commits mailing list Wesnoth-commits@gna.org https://mail.gna.org/listinfo/wesnoth-commits