diff options
| author | Holger Kaelberer | 2023-04-19 10:12:44 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-04-20 14:53:03 +0200 |
| commit | 897fe2a01b7e1983b076ef41f4ce11c5b3e498c6 (patch) | |
| tree | 3e51af40032eaf30483507b53e2a8e2141705ab6 | |
| parent | aad926baf87bb0121afc07b100e61f2b344ce156 (diff) | |
| download | catch3-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.cmake | 2 |
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" |