]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add the -Wlogical-op switch when building with GCC 4.3 or later.
authorNick Mathewson <nickm@torproject.org>
Thu, 31 Oct 2013 02:39:53 +0000 (22:39 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 31 Oct 2013 02:39:53 +0000 (22:39 -0400)
configure.ac

index 8d21661f8450754bb6c8ab03a1e858eb94dd52f9..974ff27076e1042d42d8958f7097381231cd0b85 100644 (file)
@@ -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