From 5f7303f5cdec05b099ea3b408364a114be218c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schu=CC=88mann?= Date: Fri, 10 Jul 2026 23:44:16 +0200 Subject: [PATCH] Fix MSVC 2015 warning for noexcept with disabled exceptions --- test/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 48bd2d2..8fec7f2 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -99,7 +99,8 @@ add_test(fwd_impl_test fwd_impl_test) add_executable(exception exception.cpp) if(MSVC) - target_compile_options(exception PRIVATE /EHs-c-) + # MSVC 2015 warns for noexcept declarations when exception handling is disabled. + target_compile_options(exception PRIVATE /EHs-c- /wd4577) target_compile_definitions(exception PRIVATE _HAS_EXCEPTIONS=0) else() target_compile_options(exception PRIVATE -fno-exceptions)