Fix MSVC warning in catch.hpp
This commit is contained in:
@@ -1,7 +1,4 @@
|
|||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(disable:4805)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define CATCH_CONFIG_MAIN
|
#define CATCH_CONFIG_MAIN
|
||||||
#include "catch.hpp"
|
#include "catch.hpp"
|
||||||
|
|||||||
@@ -19,6 +19,11 @@
|
|||||||
# pragma GCC system_header
|
# pragma GCC system_header
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable:4805)
|
||||||
|
#endif
|
||||||
|
|
||||||
// #included from: internal/catch_suppress_warnings.h
|
// #included from: internal/catch_suppress_warnings.h
|
||||||
|
|
||||||
#define TWOBLUECUBES_CATCH_SUPPRESS_WARNINGS_H_INCLUDED
|
#define TWOBLUECUBES_CATCH_SUPPRESS_WARNINGS_H_INCLUDED
|
||||||
@@ -9414,5 +9419,9 @@ using Catch::Detail::Approx;
|
|||||||
# pragma GCC diagnostic pop
|
# pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED
|
#endif // TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user