Author: cazfi Date: Sun Nov 1 13:16:27 2015 New Revision: 30332 URL: http://svn.gna.org/viewcvs/freeciv?rev=30332&view=rev Log: Do not include nation_check() function to a release build where it's not being used.
Reported by Louis Moureaux <louis94> See bug #23993 Modified: trunk/common/nation.c Modified: trunk/common/nation.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/nation.c?rev=30332&r1=30331&r2=30332&view=diff ============================================================================== --- trunk/common/nation.c (original) +++ trunk/common/nation.c Sun Nov 1 13:16:27 2015 @@ -58,9 +58,6 @@ log_do_output_for_level(LOG_ERROR), \ __FILE__, __FUNCTION__, __FC_LINE__), \ action) -#else -#define NATION_CHECK(pnation, action) /* Do Nothing. */ -#endif /* DEBUG */ /**************************************************************************** Returns TRUE if the nation is valid, else, print an error message and @@ -97,6 +94,10 @@ return TRUE; } +#else /* DEBUG */ +#define NATION_CHECK(pnation, action) /* Do Nothing. */ +#endif /* DEBUG */ + /**************************************************************************** Returns the nation that has the given (translated) plural noun. Returns NO_NATION_SELECTED if none match. _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits