summaryrefslogtreecommitdiff
path: root/src/repository.c
diff options
context:
space:
mode:
authorMichael Schubert <schu@schu.io>2012-11-18 04:27:49 +0100
committerMichael Schubert <schu@schu.io>2012-11-18 04:27:49 +0100
commit0066955d9752cab8f8533c0dddfc95d08ad13e33 (patch)
tree0cd9b5ee25f8dcf7d480e71481b95db61fe43e95 /src/repository.c
parent0e9ea5d0e30f3c4a06b1823c189fbc8c070eae7a (diff)
downloadlibgit2-0066955d9752cab8f8533c0dddfc95d08ad13e33.tar.gz
Fix a couple of warnings
Diffstat (limited to 'src/repository.c')
-rw-r--r--src/repository.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repository.c b/src/repository.c
index c1756b1bc..38382a9ba 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -1264,7 +1264,7 @@ int git_repository_head_orphan(git_repository *repo)
return 0;
}
-int at_least_one_cb(const char *refname, void *payload)
+static int at_least_one_cb(const char *refname, void *payload)
{
GIT_UNUSED(refname);
GIT_UNUSED(payload);
@@ -1287,7 +1287,7 @@ static int repo_contains_no_reference(git_repository *repo)
int git_repository_is_empty(git_repository *repo)
{
git_reference *head = NULL;
- int error, ref_count = 0;
+ int error;
if (git_reference_lookup(&head, repo, GIT_HEAD_FILE) < 0)
return -1;