refs: fix unused-but-set warning
diff --git a/src/refs.c b/src/refs.c
index 7685d56..659ac94 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -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;