summaryrefslogtreecommitdiff
path: root/diffcore-rename.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2011-04-29 11:42:41 +0200
committerJunio C Hamano <gitster@pobox.com>2011-04-29 08:20:10 -0700
commitdabdbee10bd6c7d92204ce4bfc1f3ffd60a4046a (patch)
tree987fdd987ac914eb4758b879d9661abd47367a8b /diffcore-rename.c
parent50d3062ab2cea4e999b8f3bafd211ff348bca600 (diff)
downloadgit-dabdbee10bd6c7d92204ce4bfc1f3ffd60a4046a.tar.gz
diffcore-rename.c: avoid set-but-not-used warning
Since 9d8a5a5 (diffcore-rename: refactor "too many candidates" logic, 2011-01-06), diffcore_rename() initializes num_src but does not use it anymore. "-Wunused-but-set-variable" in gcc-4.6 complains about this. Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-rename.c')
-rw-r--r--diffcore-rename.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/diffcore-rename.c b/diffcore-rename.c
index f62587e523..3d65bb370d 100644
--- a/diffcore-rename.c
+++ b/diffcore-rename.c
@@ -498,7 +498,7 @@ void diffcore_rename(struct diff_options *options)
struct diff_queue_struct outq;
struct diff_score *mx;
int i, j, rename_count, skip_unmodified = 0;
- int num_create, num_src, dst_cnt;
+ int num_create, dst_cnt;
struct progress *progress = NULL;
if (!minimum_score)
@@ -554,7 +554,6 @@ void diffcore_rename(struct diff_options *options)
* files still remain as options for rename/copies!)
*/
num_create = (rename_dst_nr - rename_count);
- num_src = rename_src_nr;
/* All done? */
if (!num_create)