Author: cazfi
Date: Sat Dec 12 09:10:09 2015
New Revision: 30953

URL: http://svn.gna.org/viewcvs/freeciv?rev=30953&view=rev
Log:
Fixed an 'unused variable' warning from ndebug build.

See bug #24156

Modified:
    branches/S2_6/server/fcdb.c

Modified: branches/S2_6/server/fcdb.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/fcdb.c?rev=30953&r1=30952&r2=30953&view=diff
==============================================================================
--- branches/S2_6/server/fcdb.c (original)
+++ branches/S2_6/server/fcdb.c Sat Dec 12 09:10:09 2015
@@ -131,7 +131,10 @@
                      pentry) {
     if (entry_type(pentry) == ENTRY_STR) {
       const char *value;
-      bool entry_str_get_success = entry_str_get(pentry, &value);
+#ifndef FREECIV_NDEBUG
+      bool entry_str_get_success =
+#endif
+        entry_str_get(pentry, &value);
 
       fc_assert(entry_str_get_success);
       fcdb_set_option(entry_name(pentry), value, AOS_FILE);


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to