Author: cazfi
Date: Fri Oct 30 07:00:25 2015
New Revision: 30313

URL: http://svn.gna.org/viewcvs/freeciv?rev=30313&view=rev
Log:
Disabled compiler warnings about tautological comparisons also in release build.

Reported by <louis94>

See patch #6499

Modified:
    trunk/m4/debug.m4

Modified: trunk/m4/debug.m4
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/m4/debug.m4?rev=30313&r1=30312&r2=30313&view=diff
==============================================================================
--- trunk/m4/debug.m4   (original)
+++ trunk/m4/debug.m4   Fri Oct 30 07:00:25 2015
@@ -10,6 +10,13 @@
 esac], [enable_debug=some])
 
 dnl -g is added by AC_PROG_CC if the compiler understands it
+
+dnl ==========================================================================
+dnl Always
+FC_C_FLAGS([-Wno-tautological-compare], [], [EXTRA_DEBUG_CFLAGS])
+if test "x$cxx_works" = "xyes" ; then
+  FC_CXX_FLAGS([-Wno-tautological-compare], [], [EXTRA_DEBUG_CXXFLAGS])
+fi
 
 dnl ==========================================================================
 dnl debug level == no
@@ -43,12 +50,11 @@
 
   FC_C_FLAGS([-Werror -Wmissing-prototypes -Wmissing-declarations \
               -Wformat -Wformat-security -Wnested-externs \
-              -Wno-tautological-compare -Wshadow],
+              -Wshadow],
              [], [EXTRA_DEBUG_CFLAGS])
   if test "x$cxx_works" = "xyes" ; then
     FC_CXX_FLAGS([-Werror -Wmissing-prototypes -Wmissing-declarations \
-                  -Wformat -Wformat-security \
-                  -Wno-tautological-compare],
+                  -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