Author: sveinung
Date: Mon Feb  1 22:57:22 2016
New Revision: 31708

URL: http://svn.gna.org/viewcvs/freeciv?rev=31708&view=rev
Log:
Only define punit_logname in debug builds.

It is only used in a log_debug().

Reported by Marko Lindqvist <cazfi>

See bug #24360

Modified:
    trunk/server/cityturn.c

Modified: trunk/server/cityturn.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/cityturn.c?rev=31708&r1=31707&r2=31708&view=diff
==============================================================================
--- trunk/server/cityturn.c     (original)
+++ trunk/server/cityturn.c     Mon Feb  1 22:57:22 2016
@@ -2589,7 +2589,9 @@
 
   {
     const char *punit_link = unit_tile_link(punit);
+#ifdef FREECIV_DEBUG
     const char *punit_logname = unit_name_translation(punit);
+#endif /* FREECIV_DEBUG */
     struct tile *utile = unit_tile(punit);
 
     if (upkeep_kill_unit(punit, O_GOLD, ULR_SOLD,


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

Reply via email to