From b6fe1fec148cf5bcd9a8d780c993dbebc83b860d Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 7 May 2018 15:18:40 +0800 Subject: [PATCH] auth: silence -Wparentheses warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit this change silences following warning: warning: unnecessary parentheses in declaration of ‘os’ [-Wparentheses] std::ostringstream(os); ^ Signed-off-by: Kefu Chai --- src/auth/KeyRing.cc | 1 - 1 file changed, 1 deletion(-) 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(); -- 2.39.5