浏览代码

Add -Wduplicated-cond on GCC 6

Nick Mathewson 8 年之前
父节点
当前提交
12517c7303
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      configure.ac

+ 1 - 0
configure.ac

@@ -1777,6 +1777,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
  if test "x$have_gcc6" = "xyes"; then
      CFLAGS="$CFLAGS -Wignored-attributes -Wshift-negative-value -Wshift-overflow=2"
      CFLAGS="$CFLAGS -Wnull-dereference"
+     CFLAGS="$CFLAGS -Wduplicated-cond"
   fi
 
   if test "x$have_shorten64_flag" = "xyes"; then