diff --git a/test/src/unit-allocator.cpp b/test/src/unit-allocator.cpp index 962828d20..c68e1886b 100644 --- a/test/src/unit-allocator.cpp +++ b/test/src/unit-allocator.cpp @@ -100,6 +100,9 @@ struct my_allocator : std::allocator std::allocator::deallocate(p, n); } + // the code below warns about p in MSVC 2015 - this could be a bug + DOCTEST_MSVC_SUPPRESS_WARNING_PUSH + DOCTEST_MSVC_SUPPRESS_WARNING(4100) void destroy(T* p) { if (next_destroy_fails) @@ -110,6 +113,7 @@ struct my_allocator : std::allocator p->~T(); } + DOCTEST_MSVC_SUPPRESS_WARNING_POP template struct rebind diff --git a/test/src/unit-udt.cpp b/test/src/unit-udt.cpp index 2bebd8f59..7871a7fba 100644 --- a/test/src/unit-udt.cpp +++ b/test/src/unit-udt.cpp @@ -809,6 +809,10 @@ TEST_CASE("an incomplete type does not trigger a compiler error in non-evaluated static_assert(!is_constructible_patched::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