Fix MSVC warning in catch.hpp

This commit is contained in:
2017-09-16 12:56:56 -04:00
parent 0a98e62f14
commit db6132bb03
2 changed files with 9 additions and 3 deletions

View File

@@ -1,7 +1,4 @@
#ifdef _MSC_VER
#pragma warning(disable:4805)
#endif
#define CATCH_CONFIG_MAIN
#include "catch.hpp"

View File

@@ -19,6 +19,11 @@
# pragma GCC system_header
#endif
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4805)
#endif
// #included from: internal/catch_suppress_warnings.h
#define TWOBLUECUBES_CATCH_SUPPRESS_WARNINGS_H_INCLUDED
@@ -9414,5 +9419,9 @@ using Catch::Detail::Approx;
# pragma GCC diagnostic pop
#endif
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#endif // TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED