From: Joel Rosdahl Date: Tue, 2 Oct 2018 19:48:47 +0000 (+0200) Subject: Fix Clang warning “declaration shadows a local variable” X-Git-Tag: v3.5~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b693475eb96963f9fc6de5d2a4d6a4fabc553779;p=thirdparty%2Fccache.git Fix Clang warning “declaration shadows a local variable” --- diff --git a/src/ccache.c b/src/ccache.c index 9fae59bdd..cd74f1160 100644 --- a/src/ccache.c +++ b/src/ccache.c @@ -3602,7 +3602,7 @@ ccache_main_options(int argc, char *argv[]) if (size == 0) { printf("Unset cache size limit\n"); } else { - char *s = format_human_readable_size(size); + s = format_human_readable_size(size); printf("Set cache size limit to %s\n", s); free(s); }