From affd2736c33a82ebbf2e1d6fd3f311355aea6686 Mon Sep 17 00:00:00 2001 From: miloyip Date: Mon, 13 Apr 2015 15:22:26 +0800 Subject: [PATCH] Fix gcc warning for itoatest --- test/unittest/itoatest.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/unittest/itoatest.cpp b/test/unittest/itoatest.cpp index 4ad6d67..31a008c 100644 --- a/test/unittest/itoatest.cpp +++ b/test/unittest/itoatest.cpp @@ -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 @@ -153,3 +158,7 @@ TEST(itoa, u64toa) { TEST(itoa, i64toa) { Verify(i64toa_naive, i64toa); } + +#ifdef __GNUC__ +RAPIDJSON_DIAG_POP +#endif