mirror of
https://github.com/nlohmann/json.git
synced 2025-07-24 02:21:01 +03:00
Fix Visual Studio 2017 warnings
This commit is contained in:
@ -38,6 +38,11 @@ using nlohmann::json;
|
||||
#include <unordered_set>
|
||||
#include <iostream>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning (push)
|
||||
#pragma warning (disable : 4189) // local variable is initialized but not referenced
|
||||
#endif
|
||||
|
||||
TEST_CASE("README", "[hide]")
|
||||
{
|
||||
{
|
||||
@ -298,3 +303,7 @@ TEST_CASE("README", "[hide]")
|
||||
std::cout.rdbuf(old_cout_buffer);
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning (pop)
|
||||
#endif
|
Reference in New Issue
Block a user