瀏覽代碼

Add the -Wlogical-op switch when building with GCC 4.3 or later.

Nick Mathewson 12 年之前
父節點
當前提交
9b0a4cbe92
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      configure.ac

+ 1 - 1
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