Commit affd2736 authored by miloyip's avatar miloyip

Fix gcc warning for itoatest

parent 0b793ea5
...@@ -21,6 +21,11 @@ ...@@ -21,6 +21,11 @@
#include "unittest.h" #include "unittest.h"
#include "rapidjson/internal/itoa.h" #include "rapidjson/internal/itoa.h"
#ifdef __GNUC__
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(type-limits)
#endif
using namespace rapidjson::internal; using namespace rapidjson::internal;
template <typename T> template <typename T>
...@@ -153,3 +158,7 @@ TEST(itoa, u64toa) { ...@@ -153,3 +158,7 @@ TEST(itoa, u64toa) {
TEST(itoa, i64toa) { TEST(itoa, i64toa) {
Verify(i64toa_naive, i64toa); Verify(i64toa_naive, i64toa);
} }
#ifdef __GNUC__
RAPIDJSON_DIAG_POP
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment