git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] diffcore-rename: Remove unused variable 'num_src'
@ 2011-04-29  6:35 Ingo Molnar
  0 siblings, 0 replies; only message in thread
From: Ingo Molnar @ 2011-04-29  6:35 UTC (permalink / raw)
  To: git


GCC 4.6 noticed an initialized but unused variable in diffcore_rename():

  diffcore-rename.c: In function ‘diffcore_rename’:
  diffcore-rename.c:501:18: warning: variable ‘num_src’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
diff --git a/diffcore-rename.c b/diffcore-rename.c
index d0259be..f639601 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)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-29  6:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-29  6:35 [PATCH] diffcore-rename: Remove unused variable 'num_src' Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).