Author: cazfi
Date: Sun Nov  1 13:16:39 2015
New Revision: 30334

URL: http://svn.gna.org/viewcvs/freeciv?rev=30334&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:
    branches/S2_5/common/nation.c

Modified: branches/S2_5/common/nation.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/common/nation.c?rev=30334&r1=30333&r2=30334&view=diff
==============================================================================
--- branches/S2_5/common/nation.c       (original)
+++ branches/S2_5/common/nation.c       Sun Nov  1 13:16:39 2015
@@ -77,9 +77,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
@@ -116,6 +113,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

Reply via email to