From c9ad60eefc2e80dfadd3346b2c4d1a2554be5d73 Mon Sep 17 00:00:00 2001 From: Joao Paulo Magalhaes Date: Mon, 12 Aug 2024 19:55:30 +0100 Subject: [PATCH] update c4core --- ext/c4core | 2 +- src/c4/yml/tree.cpp | 1 + test/test_lib/test_case.hpp | 1 + test/test_lib/test_group.hpp | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/c4core b/ext/c4core index f4da68855..7aba1e111 160000 --- a/ext/c4core +++ b/ext/c4core @@ -1 +1 @@ -Subproject commit f4da68855bcb3015ec20c0c2f37180be90b7d268 +Subproject commit 7aba1e1112e4e0cabdfd653b893053969e5c3c20 diff --git a/src/c4/yml/tree.cpp b/src/c4/yml/tree.cpp index a5fe9c6ff..e20940151 100644 --- a/src/c4/yml/tree.cpp +++ b/src/c4/yml/tree.cpp @@ -5,6 +5,7 @@ C4_SUPPRESS_WARNING_MSVC_WITH_PUSH(4296/*expression is always 'boolean_value'*/) +C4_SUPPRESS_WARNING_MSVC(4702/*unreachable code*/) C4_SUPPRESS_WARNING_GCC_CLANG_WITH_PUSH("-Wold-style-cast") C4_SUPPRESS_WARNING_GCC("-Wtype-limits") C4_SUPPRESS_WARNING_GCC("-Wuseless-cast") diff --git a/test/test_lib/test_case.hpp b/test/test_lib/test_case.hpp index 68f7be328..9eb97a158 100644 --- a/test/test_lib/test_case.hpp +++ b/test/test_lib/test_case.hpp @@ -34,6 +34,7 @@ # pragma warning(push) # pragma warning(disable: 4296/*expression is always 'boolean_value'*/) # pragma warning(disable: 4389/*'==': signed/unsigned mismatch*/) +# pragma warning(disable: 4702/*unreachable code*/) # if C4_MSVC_VERSION != C4_MSVC_VERSION_2017 # pragma warning(disable: 4800/*'int': forcing value to bool 'true' or 'false' (performance warning)*/) # endif diff --git a/test/test_lib/test_group.hpp b/test/test_lib/test_group.hpp index 2ac273c57..fe97d9350 100644 --- a/test/test_lib/test_group.hpp +++ b/test/test_lib/test_group.hpp @@ -9,6 +9,7 @@ #if defined(_MSC_VER) # pragma warning(push) # pragma warning(disable: 4068/*unknown pragma*/) +# pragma warning(disable: 4702/*unreachable code*/) #elif defined(__clang__) # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments" @@ -271,6 +272,7 @@ void add_cases_##group_name(std::vector *group_cases__) #if defined(_MSC_VER) # pragma warning(pop) +# pragma warning(disable: 4702/*unreachable code*/) #elif defined(__clang__) # pragma clang diagnostic pop #elif defined(__GNUC__)