summaryrefslogtreecommitdiff
path: root/tree-diff.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2011-03-22 13:50:08 +0100
committerJunio C Hamano <gitster@pobox.com>2011-03-22 11:43:27 -0700
commitc0aa335c95974caebcc972cd63a11e6ff73b1612 (patch)
tree95b46205d5a696acda8b2e4624bb65635964fd8e /tree-diff.c
parentc2e86addb86689306b992065328ec52aa2479658 (diff)
downloadgit-c0aa335c95974caebcc972cd63a11e6ff73b1612.tar.gz
Remove unused variables
Noticed by gcc 4.6.0. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-diff.c')
-rw-r--r--tree-diff.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tree-diff.c b/tree-diff.c
index 3954281f50..76f83fcc27 100644
--- a/tree-diff.c
+++ b/tree-diff.c
@@ -17,7 +17,6 @@ static int compare_tree_entry(struct tree_desc *t1, struct tree_desc *t2,
const unsigned char *sha1, *sha2;
int cmp, pathlen1, pathlen2;
int old_baselen = base->len;
- int retval = 0;
sha1 = tree_entry_extract(t1, &path1, &mode1);
sha2 = tree_entry_extract(t2, &path2, &mode2);
@@ -53,7 +52,7 @@ static int compare_tree_entry(struct tree_desc *t1, struct tree_desc *t2,
sha1, sha2, base->buf, 0, 0);
}
strbuf_addch(base, '/');
- retval = diff_tree_sha1(sha1, sha2, base->buf, opt);
+ diff_tree_sha1(sha1, sha2, base->buf, opt);
} else {
opt->change(opt, mode1, mode2, sha1, sha2, base->buf, 0, 0);
}