Fixed gcc effc++ warning in dtoa.h

This commit is contained in:
Milo Yip 2014-08-09 21:27:32 +08:00
parent a7762a3453
commit 0d915644a4

View File

@ -16,6 +16,11 @@
namespace rapidjson {
namespace internal {
#ifdef __GNUC__
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(effc++)
#endif
struct DiyFp {
DiyFp() {}
@ -408,6 +413,10 @@ inline char* dtoa(double value, char* buffer) {
}
}
#ifdef __GNUC__
RAPIDJSON_DIAG_POP
#endif
} // namespace internal
} // namespace rapidjson