Browse Source

Add -Wduplicated-cond on GCC 6

Nick Mathewson 8 years ago
parent
commit
12517c7303
1 changed files with 1 additions and 0 deletions
  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