diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 992b0cf572..bafcd59750 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -494,6 +494,10 @@ else() # No longer supported by El Capitan clang on C++ # -fno-delete-null-pointer-checks + + # Works only with GCC 7 + -Wduplicated-branches + ) set(C_EXTRA_WARN_FLAGS diff --git a/configure.ac b/configure.ac index 166c507bbd..5d8673530e 100644 --- a/configure.ac +++ b/configure.ac @@ -748,6 +748,10 @@ AC_ARG_ENABLE(extra-compiler-warnings, # never enable this one with -Werror. # AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wbad-function-cast, C) + + # Works only with GCC 7 + AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wduplicated-branches) + fi ]) |