revision.c: Fix a sparse warning
PATCH 1/1 revision.c: Fix a sparse warning
Sparse issues an "'sole_interesting' not declared. Should it be static?" warning. In order to suppress the warning, since this symbol does not need more than file visibility, we simply add the static modifier to its declaration.
---
Hi Kevin,
If you need to re-roll your 'kb/full-history-compute-treesame-carefully' branch, could you please squash this into commit 039bdad1 ("revision.c:
discount UNINTERESTING parents", 30-04-2013).
Thanks!
ATB,
Ramsay Jones
revision.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
revision.c +1 -1
@@ -349,7 +349,7 @@ static int everybody_uninteresting(struct commit_list *orig)* (and multiple UNINTERESTING ones), then we can't choose a parent to follow, * and we should not be simplified. */ -struct commit *sole_interesting (struct rev_info *revs,struct commit_list *orig) +static struct commit *sole_interesting (struct rev_info *revs,struct commit_list *orig) {struct commit_list *list = orig;struct commit *interesting =NULL ;
Signature · 1 line
1.8.2
Quoted 6 lines · Ramsay Jones
Sparse issues an "'
sole_interesting' not declared. Should it be static?" warning. In order to suppress the warning, since this symbol does not need more than file visibility, we simply add the static modifier to its declaration.
Thanks! I'll include that fix.
Kevin
Quoted 8 lines · Kevin Bracey
Quoted 6 lines · Ramsay Jones
Sparse issues an "'
sole_interesting' not declared. Should it be static?" warning. In order to suppress the warning, since this symbol does not need more than file visibility, we simply add the static modifier to its declaration.Thanks! I'll include that fix.
Thanks.