Commit ca36a2e6 authored by Philipp A. Hartmann's avatar Philipp A. Hartmann

writer.h: use warning macros for MSVC

parent 7a2e6e79
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#include <new> // placement new #include <new> // placement new
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning(push) RAPIDJSON_DIAG_PUSH
#pragma warning(disable : 4127) // conditional expression is constant RAPIDJSON_DIAG_OFF(4127) // conditional expression is constant
#endif #endif
namespace rapidjson { namespace rapidjson {
...@@ -306,7 +306,7 @@ private: ...@@ -306,7 +306,7 @@ private:
} // namespace rapidjson } // namespace rapidjson
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning(pop) RAPIDJSON_DIAG_POP
#endif #endif
#endif // RAPIDJSON_RAPIDJSON_H_ #endif // RAPIDJSON_RAPIDJSON_H_
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