Fix gcc warning for itoatest

This commit is contained in:
miloyip 2015-04-13 15:22:26 +08:00
parent 0b793ea58a
commit affd2736c3

View File

@ -21,6 +21,11 @@
#include "unittest.h"
#include "rapidjson/internal/itoa.h"
#ifdef __GNUC__
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(type-limits)
#endif
using namespace rapidjson::internal;
template <typename T>
@ -153,3 +158,7 @@ TEST(itoa, u64toa) {
TEST(itoa, i64toa) {
Verify(i64toa_naive, i64toa);
}
#ifdef __GNUC__
RAPIDJSON_DIAG_POP
#endif