]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix Clang warning “declaration shadows a local variable”
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 2 Oct 2018 19:48:47 +0000 (21:48 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 2 Oct 2018 19:48:47 +0000 (21:48 +0200)
src/ccache.c

index 9fae59bdd46eb83dff7fc7392d52af5aee8d2b41..cd74f1160eea22e72942c611c1e8877b2a9c9cbd 100644 (file)
@@ -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);
                                }