Skip to content

Commit 6051561

Browse files
meyeringgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2b0b64e commit 6051561

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

diffcore-rename.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ void diffcore_rename(struct diff_options *options)
498498
struct diff_queue_struct outq;
499499
struct diff_score *mx;
500500
int i, j, rename_count, skip_unmodified = 0;
501-
int num_create, num_src, dst_cnt;
501+
int num_create, dst_cnt;
502502
struct progress *progress = NULL;
503503

504504
if (!minimum_score)
@@ -554,7 +554,6 @@ void diffcore_rename(struct diff_options *options)
554554
* files still remain as options for rename/copies!)
555555
*/
556556
num_create = (rename_dst_nr - rename_count);
557-
num_src = rename_src_nr;
558557

559558
/* All done? */
560559
if (!num_create)

0 commit comments

Comments
 (0)