From: Kefu Chai Date: Tue, 15 Dec 2015 06:46:14 +0000 (+0800) Subject: rgw: remove unused variable X-Git-Tag: v10.0.2~34^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F6927%2Fhead;p=ceph.git rgw: remove unused variable 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 --- diff --git a/src/rgw/rgw_formats.cc b/src/rgw/rgw_formats.cc index 1e730ea823e..698ec96b21f 100644 --- a/src/rgw/rgw_formats.cc +++ b/src/rgw/rgw_formats.cc @@ -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();