]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
auth: silence -Wparentheses warning
authorKefu Chai <kchai@redhat.com>
Mon, 7 May 2018 07:18:40 +0000 (15:18 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 7 May 2018 07:21:49 +0000 (15:21 +0800)
this change silences following warning:

warning: unnecessary parentheses in declaration of ‘os’ [-Wparentheses]
   std::ostringstream(os);
                     ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/auth/KeyRing.cc

index b8f5de5c3ea474bf8ed106059fa3828a8027b537..832cae0a346ba16add8ae2edc3057bfe0aeabb8e 100644 (file)
@@ -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<EntityName, EntityAuth>::iterator p = keys.begin();
        p != keys.end();