author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | |
Tue, 17 May 2011 17:43:10 +0000 (18:43 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 18 May 2011 04:04:59 +0000 (21:04 -0700) | ||
commit | 488201c87e284ae06323b534c31e354811fb0d51 | |
tree | 866fc36d0a4d8a814ec2124d49fb7d9aa9bbb377 | tree | snapshot |
parent | 650af7ae8bdf92bd92df20152b6d1ad7eb014169 | commit | diff |
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>
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>
setup.c | diff | blob | history |