diff --git a/src/json.hpp b/src/json.hpp index c15dc30a..04ea79a2 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -73,6 +73,11 @@ SOFTWARE. #if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wfloat-equal" +#endif + +// disable documentation warnings on clang +#if defined(__clang__) + #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdocumentation" #endif diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 1dc97bd6..76084140 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -73,6 +73,11 @@ SOFTWARE. #if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wfloat-equal" +#endif + +// disable documentation warnings on clang +#if defined(__clang__) + #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdocumentation" #endif