Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHolger Kaelberer2023-04-19 10:12:44 +0200
committerMartin Hořeňovský2023-04-20 14:53:03 +0200
commit897fe2a01b7e1983b076ef41f4ce11c5b3e498c6 (patch)
tree3e51af40032eaf30483507b53e2a8e2141705ab6
parentaad926baf87bb0121afc07b100e61f2b344ce156 (diff)
downloadcatch3-897fe2a01b7e1983b076ef41f4ce11c5b3e498c6.tar.gz
cmake: Improve unreachable-code warnings
Enable CI to report -Wunreachable-code-aggressive warnings in clang builds which covers all, -Wunreachable-code, -code-break, -code-return.
-rw-r--r--CMake/CatchMiscFunctions.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMake/CatchMiscFunctions.cmake b/CMake/CatchMiscFunctions.cmake
index 3758d956..735c7868 100644
--- a/CMake/CatchMiscFunctions.cmake
+++ b/CMake/CatchMiscFunctions.cmake
@@ -83,7 +83,7 @@ function(add_warnings_to_targets targets)
"-Wundef"
"-Wuninitialized"
"-Wunneeded-internal-declaration"
- "-Wunreachable-code"
+ "-Wunreachable-code-aggressive"
"-Wunused"
"-Wunused-function"
"-Wunused-parameter"