Skip to contentSkip to conversation

pack-objects: Limit visibility of 'indexed_commits' symbols

PATCH In review Ramsay Jones 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 4/5 pack-objects: Limit visibility of 'indexed_commits' symbols

Noticed by sparse. ("symbol '...' was not declared. Should it be static?")

---
 builtin/pack-objects.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
builtin/pack-objects.c +3 -3
index 423e85a..161bfc2 100644
@@ -85,9 +85,9 @@ static uint32_t reused, reused_delta;
 /*
  * Indexed commits
  */
-struct commit **indexed_commits;
-unsigned int indexed_commits_nr;
-unsigned int indexed_commits_alloc;
+static struct commit **indexed_commits;
+static unsigned int indexed_commits_nr;
+static unsigned int indexed_commits_alloc;
 
 static void index_commit_for_bitmap(struct commit *commit)
 {
Signature · 1 line
1.8.4