Author: cazfi
Date: Tue Nov 10 22:11:33 2015
New Revision: 30516

URL: http://svn.gna.org/viewcvs/freeciv?rev=30516&view=rev
Log:
Silenced compiler deprecation warnings also in --disable-debug builds

See patch #6509

Modified:
    branches/S2_5/m4/debug.m4

Modified: branches/S2_5/m4/debug.m4
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/m4/debug.m4?rev=30516&r1=30515&r2=30516&view=diff
==============================================================================
--- branches/S2_5/m4/debug.m4   (original)
+++ branches/S2_5/m4/debug.m4   Tue Nov 10 22:11:33 2015
@@ -13,9 +13,9 @@
 
 dnl ==========================================================================
 dnl Always
-FC_C_FLAGS([-Wno-tautological-compare], [], [EXTRA_DEBUG_CFLAGS])
+FC_C_FLAGS([-Wno-tautological-compare -Wno-deprecated-declarations], [], 
[EXTRA_DEBUG_CFLAGS])
 if test "x$cxx_works" = "xyes" ; then
-  FC_CXX_FLAGS([-Wno-tautological-compare], [], [EXTRA_DEBUG_CXXFLAGS])
+  FC_CXX_FLAGS([-Wno-tautological-compare -Wno-deprecated-declarations], [], 
[EXTRA_DEBUG_CXXFLAGS])
 fi
 
 dnl ==========================================================================
@@ -47,11 +47,11 @@
   AC_DEFINE([LUA_USE_APICHECK], [1], [Lua Api checks])
 
   FC_C_FLAGS([-Werror -Wmissing-prototypes -Wmissing-declarations \
-              -Wformat -Wformat-security -Wnested-externs 
-Wno-deprecated-declarations],
+              -Wformat -Wformat-security -Wnested-externs],
              [], [EXTRA_DEBUG_CFLAGS])
   if test "x$cxx_works" = "xyes" ; then
     FC_CXX_FLAGS([-Werror -Wmissing-prototypes -Wmissing-declarations \
-                  -Wformat -Wformat-security -Wno-deprecated-declarations],
+                  -Wformat -Wformat-security],
                  [], [EXTRA_DEBUG_CXXFLAGS])
   fi
 


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

Reply via email to