Merge pull request #540 from tinloaf/diagnostics

Properly pop diagnostics
This commit is contained in:
Niels Lohmann 2017-03-30 17:25:29 +02:00 committed by GitHub
commit 7881783745
2 changed files with 6 additions and 0 deletions

View file

@ -13886,6 +13886,9 @@ inline nlohmann::json::json_pointer operator "" _json_pointer(const char* s, std
#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__) #if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif
#if defined(__clang__)
#pragma GCC diagnostic pop
#endif
// clean up // clean up
#undef JSON_CATCH #undef JSON_CATCH

View file

@ -12919,6 +12919,9 @@ inline nlohmann::json::json_pointer operator "" _json_pointer(const char* s, std
#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__) #if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif
#if defined(__clang__)
#pragma GCC diagnostic pop
#endif
// clean up // clean up
#undef JSON_CATCH #undef JSON_CATCH