From 364545fe570a5de447e2e1678d7dbb1a74c22839 Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Wed, 2 Mar 2016 01:39:33 +0800 Subject: [PATCH] Prevent gcc wrong warning --- include/rapidjson/internal/dtoa.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/rapidjson/internal/dtoa.h b/include/rapidjson/internal/dtoa.h index eabf7e3..d458284 100644 --- a/include/rapidjson/internal/dtoa.h +++ b/include/rapidjson/internal/dtoa.h @@ -29,6 +29,7 @@ namespace internal { #ifdef __GNUC__ RAPIDJSON_DIAG_PUSH RAPIDJSON_DIAG_OFF(effc++) +RAPIDJSON_DIAG_OFF(array-bounds) // some gcc versions generate wrong warnings https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59124 #endif inline void GrisuRound(char* buffer, int len, uint64_t delta, uint64_t rest, uint64_t ten_kappa, uint64_t wp_w) {