From: Nick Mathewson Date: Thu, 31 Oct 2013 02:39:53 +0000 (-0400) Subject: Add the -Wlogical-op switch when building with GCC 4.3 or later. X-Git-Tag: tor-0.2.5.2-alpha~111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b0a4cbe9256f3b9dda7a5b6d0611a8449994548;p=thirdparty%2Ftor.git Add the -Wlogical-op switch when building with GCC 4.3 or later. --- diff --git a/configure.ac b/configure.ac index 8d21661f84..974ff27076 100644 --- a/configure.ac +++ b/configure.ac @@ -1494,7 +1494,7 @@ if test x$enable_gcc_warnings = xyes || test x$enable_gcc_warnings_advisory = xy if test x$have_gcc43 = xyes ; then # These warnings break gcc 4.2 and work on gcc 4.3 # XXXX020 See if any of these work with earlier versions. - CFLAGS="$CFLAGS -Wextra -Warray-bounds" + CFLAGS="$CFLAGS -Wextra -Warray-bounds -Wlogical-op" fi if test x$have_shorten64_flag = xyes ; then