mirror of https://github.com/nlohmann/json.git
Fix -Wunused warnings on JSON_DIAGNOSTICS (#2976)
* Fix #2975 Define JSON_DIAGNOSTICS to 0 if not defined to fix annoying Wundef warnings. * amalgamatedpull/2986/head
parent
1fd2213fd2
commit
28a169725e
|
@ -301,3 +301,7 @@
|
|||
#else
|
||||
#define JSON_EXPLICIT explicit
|
||||
#endif
|
||||
|
||||
#ifndef JSON_DIAGNOSTICS
|
||||
#define JSON_DIAGNOSTICS 0
|
||||
#endif
|
||||
|
|
|
@ -2514,6 +2514,10 @@ JSON_HEDLEY_DIAGNOSTIC_POP
|
|||
#define JSON_EXPLICIT explicit
|
||||
#endif
|
||||
|
||||
#ifndef JSON_DIAGNOSTICS
|
||||
#define JSON_DIAGNOSTICS 0
|
||||
#endif
|
||||
|
||||
|
||||
namespace nlohmann
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue