threads / patch / 35298

patch, 5 partspack-objects: Limit visibility of 'indexed_commits' symbols

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

## tl;dr

One message between Nov 7, 2013 and Nov 7, 2013. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Ramsay Jones· Nov 7, 2013, 22:11 UTC · lore

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

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
 builtin/pack-objects.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Show changes to builtin/pack-objects.c +3 −3
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index 423e85a..161bfc2 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -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)
 {
-- 
1.8.4

← back to recent threads