summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschu <schu-github@schulog.org>2011-11-29 11:02:42 +0100
committerschu <schu-github@schulog.org>2011-11-29 11:02:42 +0100
commitfe9a0e09fe4320d5f31d8fe0b593f674eedf98b7 (patch)
treece02b49341ad3d207db5b31b928b533d0ceaf4f6
parent798dd36c080af364a1405f155d6d3b7aceb5952d (diff)
downloadlibgit2-fe9a0e09fe4320d5f31d8fe0b593f674eedf98b7.tar.gz
transports: fix -Wunused-but-set-variable warning
Signed-off-by: schu <schu-github@schulog.org>
-rw-r--r--src/transports/local.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/transports/local.c b/src/transports/local.c
index f50a96173..6cf0573e8 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));