summaryrefslogtreecommitdiff
path: root/src/refs.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2011-05-01 14:59:50 -0700
committerVicent Martí <tanoku@gmail.com>2011-05-01 14:59:50 -0700
commitd4ad0771e4301d9724f06e84ebf39ace596f295e (patch)
treedff159207e85ea408c34ea31d19d9cfd5099c985 /src/refs.c
parent273c8bc044fa6c7560ef9f1fa3d8d3bb786e8f15 (diff)
parent402a47a7fa3ab2b549c5183d1d5fc82d95f64663 (diff)
downloadlibgit2-d4ad0771e4301d9724f06e84ebf39ace596f295e.tar.gz
Merge pull request #145 from schu/fix-unused-warnings.
Fix -Wunused-but-set-variable warnings
Diffstat (limited to 'src/refs.c')
-rw-r--r--src/refs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/refs.c b/src/refs.c
index 17ec2915f..e5fc79dc8 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -684,7 +684,7 @@ static int packed_loadloose(git_repository *repository)
/* Remove any loose references from the cache */
{
- const void *_unused;
+ const void *GIT_UNUSED(_unused);
git_reference *reference;
GIT_HASHTABLE_FOREACH(repository->references.loose_cache, _unused, reference,
@@ -868,7 +868,7 @@ static int packed_write(git_repository *repo)
/* Load all the packfile into a vector */
{
git_reference *reference;
- const void *_unused;
+ const void *GIT_UNUSED(_unused);
GIT_HASHTABLE_FOREACH(repo->references.packfile, _unused, reference,
git_vector_insert(&packing_list, reference); /* cannot fail: vector already has the right size */
@@ -1518,7 +1518,7 @@ int git_reference_listcb(git_repository *repo, unsigned int list_flags, int (*ca
/* list all the packed references first */
if (list_flags & GIT_REF_PACKED) {
const char *ref_name;
- void *_unused;
+ void *GIT_UNUSED(_unused);
if ((error = packed_load(repo)) < GIT_SUCCESS)
return error;
@@ -1597,7 +1597,7 @@ int git_repository__refcache_init(git_refcache *refs)
void git_repository__refcache_free(git_refcache *refs)
{
git_reference *reference;
- const void *_unused;
+ const void *GIT_UNUSED(_unused);
assert(refs);