Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Define JSON_DIAGNOSTICS to 0 if not defined to fix annoying Wundef warnings.
  • Loading branch information
gcerretani authored Aug 25, 2021
1 parent 1fd2213 commit d77da05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/nlohmann/detail/macro_scope.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,7 @@
#else
#define JSON_EXPLICIT explicit
#endif

#ifndef JSON_DIAGNOSTICS
#define JSON_DIAGNOSTICS 0
#endif

0 comments on commit d77da05

Please sign in to comment.