From 20df584bf0ade9fe1179529bd95d95ea8f86eb06 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Fri, 17 Jul 2020 02:28:34 -0400 Subject: [PATCH] rgw/picojson: Pragma out limit comparison warning intmax_t may or may not be identical to int64_t, depending on platform. On our platform, it is. Signed-off-by: Adam C. Emerson --- src/rgw/picojson/picojson.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rgw/picojson/picojson.h b/src/rgw/picojson/picojson.h index e85b66f379c8..ceaeb5ba8452 100644 --- a/src/rgw/picojson/picojson.h +++ b/src/rgw/picojson/picojson.h @@ -903,6 +903,8 @@ template inline bool _parse(Context &ctx, inpu return false; } #ifdef PICOJSON_USE_INT64 +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wtautological-type-limit-compare" { errno = 0; intmax_t ival = strtoimax(num_str.c_str(), &endp, 10); @@ -912,6 +914,7 @@ template inline bool _parse(Context &ctx, inpu return true; } } +#pragma clang diagnostic pop #endif f = strtod(num_str.c_str(), &endp); if (endp == num_str.c_str() + num_str.size()) { -- 2.47.3