Unverified Commit 28a16972 authored by Giovanni Cerretani's avatar Giovanni Cerretani Committed by GitHub

Fix -Wunused warnings on JSON_DIAGNOSTICS (#2976)

* Fix #2975

Define JSON_DIAGNOSTICS to 0 if not defined to fix annoying Wundef warnings.

* amalgamated
parent 1fd2213f
...@@ -301,3 +301,7 @@ ...@@ -301,3 +301,7 @@
#else #else
#define JSON_EXPLICIT explicit #define JSON_EXPLICIT explicit
#endif #endif
#ifndef JSON_DIAGNOSTICS
#define JSON_DIAGNOSTICS 0
#endif
...@@ -2514,6 +2514,10 @@ JSON_HEDLEY_DIAGNOSTIC_POP ...@@ -2514,6 +2514,10 @@ JSON_HEDLEY_DIAGNOSTIC_POP
#define JSON_EXPLICIT explicit #define JSON_EXPLICIT explicit
#endif #endif
#ifndef JSON_DIAGNOSTICS
#define JSON_DIAGNOSTICS 0
#endif
namespace nlohmann namespace nlohmann
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment