소스 검색

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