setup.c: Fix some "symbol not declared" sparse warnings

In particular, sparse issues the "symbol 'a_symbol' was not declared. Should it be static?" warnings for the following symbols: setup.c:159:3: 'pathspec_magic' setup.c:176:12: 'prefix_pathspec' These symbols only require file scope, so we add the static modifier to their declarations. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ramsay Jones committed May 17, 2011 at 18:43 UTC 488201c87e284ae06323b534c31e354811fb0d51
1 file changed +2 -2
setup.c
+2 -2
@@ -152,7 +152,7 @@ void verify_non_filename(const char *prefix, const char *arg)
152 */
153 #define PATHSPEC_FROMTOP (1<<0)
154
155 -struct pathspec_magic {
155 +static struct pathspec_magic {
156 unsigned bit;
157 char mnemonic; /* this cannot be ':'! */
158 const char *name;
@@ -173,7 +173,7 @@ struct pathspec_magic {
173 * the prefix part must always match literally, and a single stupid
174 * string cannot express such a case.
175 */
176 -const char *prefix_pathspec(const char *prefix, int prefixlen, const char *elt)
176 +static const char *prefix_pathspec(const char *prefix, int prefixlen, const char *elt)
177 {
178 unsigned magic = 0;
179 const char *copyfrom = elt;