⚗️ add -WX flag to MSVC builds

This commit is contained in:
Niels Lohmann committed 2021-08-13 14:07:17 +02:00
1 parent fecb01858b
commit 288cdf9af7
2 files changed
+10

No files matched your search

+6
View File
@@ -809,6 +809,10 @@ TEST_CASE("an incomplete type does not trigger a compiler error in non-evaluated
static_assert(!is_constructible_patched<json, incomplete>::value, "");
}
// the code below warns about t in MSVC 2015 - this could be a bug
DOCTEST_MSVC_SUPPRESS_WARNING_PUSH
DOCTEST_MSVC_SUPPRESS_WARNING(4100)
namespace
{
class Evil
@@ -821,6 +825,8 @@ class Evil
int m_i = 0;
};
DOCTEST_MSVC_SUPPRESS_WARNING_POP
void from_json(const json& /*unused*/, Evil& /*unused*/) {}
} // namespace