From b5fdfd559d08e1a447ac8610782bd76d40a5919b Mon Sep 17 00:00:00 2001 From: Vedansh Bhartia Date: Tue, 1 Aug 2023 23:55:11 +0530 Subject: [PATCH] rgw: Add coverity annotation for warning about tautological comparison Signed-off-by: Vedansh Bhartia --- src/rgw/picojson/picojson.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/picojson/picojson.h b/src/rgw/picojson/picojson.h index ceaeb5ba8452..d8dd94439bfb 100644 --- a/src/rgw/picojson/picojson.h +++ b/src/rgw/picojson/picojson.h @@ -908,6 +908,7 @@ template inline bool _parse(Context &ctx, inpu { errno = 0; intmax_t ival = strtoimax(num_str.c_str(), &endp, 10); + // coverity[result_independent_of_operands:SUPPRESS] if (errno == 0 && std::numeric_limits::min() <= ival && ival <= std::numeric_limits::max() && endp == num_str.c_str() + num_str.size()) { ctx.set_int64(ival); -- 2.47.3