From: Adam C. Emerson Date: Fri, 17 Jul 2020 00:53:45 +0000 (-0400) Subject: rgw/picojson: Fix assignment-used-as-value warning X-Git-Tag: wip-pdonnell-testing-20200918.022351~598^2~22 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8f2b332b7fb5ec805deebf52f63cf837cfc91b88;p=ceph-ci.git rgw/picojson: Fix assignment-used-as-value warning Signed-off-by: Adam C. Emerson --- diff --git a/src/rgw/picojson/picojson.h b/src/rgw/picojson/picojson.h index a395bbc9f59..e85b66f379c 100644 --- a/src/rgw/picojson/picojson.h +++ b/src/rgw/picojson/picojson.h @@ -383,7 +383,7 @@ GET(array, *u_.array_) GET(object, *u_.object_) #ifdef PICOJSON_USE_INT64 GET(double, - (type_ == int64_type && (const_cast(this)->type_ = number_type, const_cast(this)->u_.number_ = u_.int64_), + (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), u_.number_)) GET(int64_t, u_.int64_) #else