Author: cazfi
Date: Sun Nov  1 13:16:33 2015
New Revision: 30333

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

Modified: branches/S2_6/common/nation.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/nation.c?rev=30333&r1=30332&r2=30333&view=diff
==============================================================================
--- branches/S2_6/common/nation.c       (original)
+++ branches/S2_6/common/nation.c       Sun Nov  1 13:16:33 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

Reply via email to