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>

Jim Meyering committed Apr 29, 2011 at 11:42 UTC 6051561a6cc8d715ce6243c26712448f6e32fe4e
1 file changed +1 -2
diffcore-rename.c
+1 -2
@@ -498,7 +498,7 @@ void diffcore_rename(struct diff_options *options)
498 struct diff_queue_struct outq;
499 struct diff_score *mx;
500 int i, j, rename_count, skip_unmodified = 0;
501 - int num_create, num_src, dst_cnt;
501 + int num_create, dst_cnt;
502 struct progress *progress = NULL;
503
504 if (!minimum_score)
@@ -554,7 +554,6 @@ void diffcore_rename(struct diff_options *options)
554 * files still remain as options for rename/copies!)
555 */
556 num_create = (rename_dst_nr - rename_count);
557 - num_src = rename_src_nr;
557
558 /* All done? */
559 if (!num_create)