]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add -Wduplicated-cond on GCC 6
authorNick Mathewson <nickm@torproject.org>
Mon, 30 May 2016 16:05:08 +0000 (12:05 -0400)
committerNick Mathewson <nickm@torproject.org>
Sat, 11 Jun 2016 14:11:52 +0000 (10:11 -0400)
configure.ac

index 4878d2ba7e058706b295131a329b654050ba7059..d9149e26ec258786bdf442c64dd8b2433ee996c3 100644 (file)
@@ -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