Commit 9738e2cd2c57aeaa474315108af2ac5556b93843

Michael Schubert 2012-04-27T18:04:58

refs: fix unused-but-set warning

1
2
3
4
5
6
7
8
9
10
11
12
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;