From 72fb9c7c96147aa9e58ad5d7843a16c0bc87ba4b Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sat, 13 Jan 2018 20:31:45 +0000 Subject: [PATCH] Suppress warnings in noexcept_tests --- test/unordered/noexcept_tests.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/unordered/noexcept_tests.cpp b/test/unordered/noexcept_tests.cpp index 84bb404e..4a28ce18 100644 --- a/test/unordered/noexcept_tests.cpp +++ b/test/unordered/noexcept_tests.cpp @@ -12,6 +12,12 @@ #include "../helpers/test.hpp" +#if defined(BOOST_MSVC) +#pragma warning(push) +// conditional expression is constant +#pragma warning(disable : 4127) +#endif + namespace noexcept_tests { // Test the noexcept is set correctly for the move constructor. @@ -310,4 +316,8 @@ namespace noexcept_tests { } } +#if defined(BOOST_MSVC) +#pragma warning(pop) +#endif + RUN_TESTS()