]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unused variable 6927/head
authorKefu Chai <kchai@redhat.com>
Tue, 15 Dec 2015 06:46:14 +0000 (14:46 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 15 Dec 2015 06:46:16 +0000 (14:46 +0800)
to fix the compiler warning of

 rgw/rgw_formats.cc: In member function 'virtual void
 RGWFormatter_Plain::dump_format_va(const char*, const char*, bool, const
 char*, __va_list_tag*)':
 rgw/rgw_formats.cc:143:15: warning: unused variable 'format'
 [-Wunused-variable]
    const char *format;

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

index 1e730ea823eec2d39506c9a880897e0c5388a896..698ec96b21f106043ee01e19f512ab8fa5602c74 100644 (file)
@@ -140,7 +140,6 @@ std::ostream& RGWFormatter_Plain::dump_stream(const char *name)
 void RGWFormatter_Plain::dump_format_va(const char *name, const char *ns, bool quoted, const char *fmt, va_list ap)
 {
   char buf[LARGE_SIZE];
-  const char *format;
 
   struct plain_stack_entry& entry = stack.back();