writer.h: use warning macros for MSVC
This commit is contained in:
parent
7a2e6e79c6
commit
ca36a2e66e
@ -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:
|
|||||||
} // 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_
|
||||||
|
Loading…
x
Reference in New Issue
Block a user