Author: cazfi Date: Thu Jun 30 21:56:18 2016 New Revision: 33129 URL: http://svn.gna.org/viewcvs/freeciv?rev=33129&view=rev Log: Always silence nonnull warnings.
Reported by Louis Moureaux <louis94> See bug #23810 Modified: trunk/m4/debug.m4 Modified: trunk/m4/debug.m4 URL: http://svn.gna.org/viewcvs/freeciv/trunk/m4/debug.m4?rev=33129&r1=33128&r2=33129&view=diff ============================================================================== --- trunk/m4/debug.m4 (original) +++ trunk/m4/debug.m4 Thu Jun 30 21:56:18 2016 @@ -13,9 +13,11 @@ dnl ========================================================================== dnl Always -FC_C_FLAGS([-Wno-tautological-compare], [], [EXTRA_DEBUG_CFLAGS]) +FC_C_FLAGS([-Wno-tautological-compare -Wno-nonnull-compare], + [], [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-nonnull-compare], + [], [EXTRA_DEBUG_CXXFLAGS]) fi dnl ========================================================================== @@ -49,12 +51,12 @@ AC_DEFINE([LUA_USE_APICHECK], [1], [Lua Api checks]) FC_C_FLAGS([-Werror -Wmissing-prototypes -Wmissing-declarations \ - -Wformat -Wformat-security -Wnested-externs -Wno-nonnull-compare \ + -Wformat -Wformat-security -Wnested-externs \ -Wshadow], [], [EXTRA_DEBUG_CFLAGS]) if test "x$cxx_works" = "xyes" ; then FC_CXX_FLAGS([-Werror -Wmissing-prototypes -Wmissing-declarations \ - -Wformat -Wformat-security -Wno-nonnull-compare], + -Wformat -Wformat-security], [], [EXTRA_DEBUG_CXXFLAGS]) fi _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits