From 34a6c2aeae581526a015b5e608b30b5472d31a1f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 15 Dec 2015 14:46:14 +0800 Subject: [PATCH] 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 --- src/rgw/rgw_formats.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/rgw/rgw_formats.cc b/src/rgw/rgw_formats.cc index 1e730ea823eec..698ec96b21f10 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(); -- 2.39.5