encodings.h: hide narrowing conversion warnings on MSVC

This commit is contained in:
Philipp A. Hartmann 2014-07-10 18:12:46 +02:00 committed by Philipp A. Hartmann
parent e63125f1a1
commit 04f9c5020f

View File

@ -3,7 +3,10 @@
#include "rapidjson.h"
#ifdef __GNUC__
#ifdef _MSC_VER
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(4244) // conversion from 'type1' to 'type2', possible loss of data
#elif defined(__GNUC__)
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(effc++)
#endif
@ -529,7 +532,7 @@ struct Transcoder<Encoding, Encoding> {
} // namespace rapidjson
#ifdef __GNUC__
#if defined(__GNUC__) || defined(_MSV_VER)
RAPIDJSON_DIAG_POP
#endif