From: Kefu Chai Date: Mon, 7 May 2018 07:18:40 +0000 (+0800) Subject: auth: silence -Wparentheses warning X-Git-Tag: v14.0.0~190^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b6fe1fec148cf5bcd9a8d780c993dbebc83b860d;p=ceph.git auth: silence -Wparentheses warning this change silences following warning: warning: unnecessary parentheses in declaration of ‘os’ [-Wparentheses] std::ostringstream(os); ^ Signed-off-by: Kefu Chai --- diff --git a/src/auth/KeyRing.cc b/src/auth/KeyRing.cc index b8f5de5c3ea47..832cae0a346ba 100644 --- a/src/auth/KeyRing.cc +++ b/src/auth/KeyRing.cc @@ -128,7 +128,6 @@ void KeyRing::encode_plaintext(bufferlist& bl) void KeyRing::encode_formatted(string label, Formatter *f, bufferlist& bl) { - std::ostringstream(os); f->open_array_section(label.c_str()); for (map::iterator p = keys.begin(); p != keys.end();