refs: fix unused-but-set warning

This commit is contained in:
Michael Schubert 2012-04-27 18:04:58 +02:00
parent 821f6bc740
commit 9738e2cd2c

View File

@ -1484,6 +1484,7 @@ int git_reference_foreach(
if (list_flags & GIT_REF_PACKED) {
const char *ref_name;
void *ref;
GIT_UNUSED(ref);
if (packed_load(repo) < 0)
return -1;