summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 50d3062)
raw | patch | inline | side by side (parent: 50d3062)
author | Jim Meyering <jim@meyering.net> | |
Fri, 29 Apr 2011 09:42:41 +0000 (11:42 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 29 Apr 2011 15:20:10 +0000 (08:20 -0700) |
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>
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>
diffcore-rename.c | patch | blob | history |
diff --git a/diffcore-rename.c b/diffcore-rename.c
index f62587e523e1b38c2fd440780d2635677e734c4d..3d65bb370dbfd6d6581b6b3b454b5551d3e3fe22 100644 (file)
--- a/diffcore-rename.c
+++ b/diffcore-rename.c
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)
* 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)