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

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

See bug #24156

Modified:
    branches/S2_5/server/fcdb.c

Modified: branches/S2_5/server/fcdb.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/fcdb.c?rev=30954&r1=30953&r2=30954&view=diff
==============================================================================
--- branches/S2_5/server/fcdb.c (original)
+++ branches/S2_5/server/fcdb.c Sat Dec 12 09:10:14 2015
@@ -135,7 +135,10 @@
                      pentry) {
     if (entry_type(pentry) == ENTRY_STR) {
       const char *value;
-      bool entry_str_get_success = entry_str_get(pentry, &value);
+#ifndef 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
[email protected]
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to