From c6fb9ee21495a06ece8681e81872dd23d0d4be85 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Mon, 6 Mar 2017 21:22:39 +0100 Subject: Add -Wduplicated-branches to extra warnings Change-Id: I11d60b4405f4fde039affcdeebb13a3ceb2aded6 Reviewed-on: https://code.wireshark.org/review/20428 Petri-Dish: Peter Wu Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte Reviewed-by: Michael Mann --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') 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 -- cgit v1.2.1