mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
Suppress warnings in noexcept_tests
This commit is contained in:
@ -12,6 +12,12 @@
|
|||||||
|
|
||||||
#include "../helpers/test.hpp"
|
#include "../helpers/test.hpp"
|
||||||
|
|
||||||
|
#if defined(BOOST_MSVC)
|
||||||
|
#pragma warning(push)
|
||||||
|
// conditional expression is constant
|
||||||
|
#pragma warning(disable : 4127)
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace noexcept_tests {
|
namespace noexcept_tests {
|
||||||
// Test the noexcept is set correctly for the move constructor.
|
// 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()
|
RUN_TESTS()
|
||||||
|
Reference in New Issue
Block a user