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

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

See bug #24156

Modified:
    trunk/server/fcdb.c

Modified: trunk/server/fcdb.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/fcdb.c?rev=30952&r1=30951&r2=30952&view=diff
==============================================================================
--- trunk/server/fcdb.c (original)
+++ trunk/server/fcdb.c Sat Dec 12 09:10:04 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