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

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2025-07-14 12:05:03 +0200
committerMartin Hořeňovský2025-07-14 12:15:25 +0200
commit050e14dce05b93965ecf60ec524fa4cb3f91bb70 (patch)
tree3538774e8bb79a5acc32da15c738976ec3772ec5 /src
parent6097bd6ee910f4ebb6216e0d1817fb84a51a7efb (diff)
downloadcatch3-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 'src')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d8015737..49b2d1d1 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -451,8 +451,8 @@ if(CATCH_BUILD_EXAMPLES OR CATCH_BUILD_EXTRA_TESTS)
target_compile_features(Catch2_buildall_interface INTERFACE cxx_std_14)
endif()
-list(APPEND CATCH_WARNING_TARGETS Catch2 Catch2WithMain)
-set(CATCH_WARNING_TARGETS ${CATCH_WARNING_TARGETS} PARENT_SCOPE)
+list(APPEND CATCH_IMPL_TARGETS Catch2 Catch2WithMain)
+set(CATCH_IMPL_TARGETS ${CATCH_IMPL_TARGETS} PARENT_SCOPE)
# We still do not support building dynamic library with hidden visibility
# so we want to check & warn users if they do this. However, we won't abort