aboutsummaryrefslogtreecommitdiff
path: root/include/rapidjson/document.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rapidjson/document.h')
-rw-r--r--include/rapidjson/document.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h
index a6acc24..d25c5c0 100644
--- a/include/rapidjson/document.h
+++ b/include/rapidjson/document.h
@@ -26,15 +26,13 @@
#include <limits>
RAPIDJSON_DIAG_PUSH
-#ifdef _MSC_VER
-RAPIDJSON_DIAG_OFF(4127) // conditional expression is constant
-RAPIDJSON_DIAG_OFF(4244) // conversion from kXxxFlags to 'uint16_t', possible loss of data
-#endif
-
#ifdef __clang__
RAPIDJSON_DIAG_OFF(padded)
RAPIDJSON_DIAG_OFF(switch-enum)
RAPIDJSON_DIAG_OFF(c++98-compat)
+#elif defined(_MSC_VER)
+RAPIDJSON_DIAG_OFF(4127) // conditional expression is constant
+RAPIDJSON_DIAG_OFF(4244) // conversion from kXxxFlags to 'uint16_t', possible loss of data
#endif
#ifdef __GNUC__