Skip to content

Commit

Permalink
update c4core
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm committed Aug 12, 2024
1 parent 38f616b commit c9ad60e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/c4/yml/tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions test/test_lib/test_case.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions test/test_lib/test_group.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -271,6 +272,7 @@ void add_cases_##group_name(std::vector<Case> *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__)
Expand Down

0 comments on commit c9ad60e

Please sign in to comment.