mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-28 19:52:02 +01:00
Fix gcc warning for itoatest
This commit is contained in:
@@ -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) {
|
|||||||
TEST(itoa, i64toa) {
|
TEST(itoa, i64toa) {
|
||||||
Verify(i64toa_naive, i64toa);
|
Verify(i64toa_naive, i64toa);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
RAPIDJSON_DIAG_POP
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user