Commit fe9a0e09fe4320d5f31d8fe0b593f674eedf98b7

schu 2011-11-29T11:02:42

transports: fix -Wunused-but-set-variable warning Signed-off-by: schu <schu-github@schulog.org>

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/transports/local.c b/src/transports/local.c
index f50a961..6cf0573 100644
--- a/src/transports/local.c
+++ b/src/transports/local.c
@@ -74,6 +74,7 @@ static int add_ref(transport_local *t, const char *name)
 	ret = p_snprintf(head->name, peel_len + 1, "%s%s", name, peeled);
 
 	assert(ret < peel_len + 1);
+	(void)ret;
 
 	git_oid_cpy(&head->oid, git_tag_target_oid((git_tag *) obj));