diff options
| author | Martin Hořeňovský | 2025-07-14 12:05:03 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2025-07-14 12:15:25 +0200 |
| commit | 050e14dce05b93965ecf60ec524fa4cb3f91bb70 (patch) | |
| tree | 3538774e8bb79a5acc32da15c738976ec3772ec5 /examples | |
| parent | 6097bd6ee910f4ebb6216e0d1817fb84a51a7efb (diff) | |
| download | catch3-050e14dce05b93965ecf60ec524fa4cb3f91bb70.tar.gz | |
Disable Wmissing-noreturn for test files
Adding unreachable to `FAIL` and `SKIP` made Clang become very good
at figuring out that tests of `FAIL` and `SKIP` will never return
and thus could be marked as [[noreturn]].
To avoid introducing lot of warning suppression noise into the
test files, we just disable it instead.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 4035a025..74b65995 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -54,5 +54,5 @@ foreach(name ${ALL_EXAMPLE_TARGETS}) target_link_libraries(${name} Catch2WithMain) endforeach() -list(APPEND CATCH_WARNING_TARGETS ${ALL_EXAMPLE_TARGETS}) -set(CATCH_WARNING_TARGETS ${CATCH_WARNING_TARGETS} PARENT_SCOPE) +list(APPEND CATCH_TEST_TARGETS ${ALL_EXAMPLE_TARGETS}) +set(CATCH_TEST_TARGETS ${CATCH_TEST_TARGETS} PARENT_SCOPE) |