builtin/tag.c: Fix a sparse warning
In particular, sparse complains as follows: SP builtin/tag.c builtin/tag.c:411:5: warning: symbol 'parse_opt_points_at' was \ not declared. Should it be static? In order to suppress the warning, since the parse_opt_points_at() function does not need to be an external symbol, we simply add the static modifier to the function definition. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ramsay Jones committed
Feb 13, 2012 at 18:24 UTC
0975a5020ef050a9fd5b518cbd601e5ee43ddbcf
1 file changed
+1
-1
builtin/tag.c
+1
-1
@@ -400,7 +400,7 @@ static int strbuf_check_tag_ref(struct strbuf *sb, const char *name)
400
return check_refname_format(sb->buf, 0);
401
}
402
403
-int parse_opt_points_at(const struct option *opt __attribute__ ((unused)),
403
+static int parse_opt_points_at(const struct option *opt __attribute__((unused)),
404
const char *arg, int unset)
405
{
406
unsigned char sha1[20];