git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Simple dead assignment
@ 2011-05-24 21:07 Chris Wilson
  2011-05-24 22:45 ` [PATCH] " Chris Wilson
  0 siblings, 1 reply; 10+ messages in thread
From: Chris Wilson @ 2011-05-24 21:07 UTC (permalink / raw)
  To: git; +Cc: Ævar Arnfjörð Bjarmason, Junio C Hamano

[-- Attachment #1: Type: text/plain, Size: 331 bytes --]

Hi Folks,

Sentry picked up this dead assignment commited yesterday in ba67aaf.
I've provided a patch to remove it. It might also be a good idea to
ask the author if that value was supposed to be used for something
in particular before pulling it out.

Thanks,
Chris

-- 
Chris Wilson
http://vigilantsw.com/
Vigilant Software, LLC

[-- Attachment #2: da.diff --]
[-- Type: text/x-diff, Size: 653 bytes --]

diff --git a/sh-i18n--envsubst.c b/sh-i18n--envsubst.c
index 7125093..5829463 100644
--- a/sh-i18n--envsubst.c
+++ b/sh-i18n--envsubst.c
@@ -67,9 +67,6 @@ static void subst_from_stdin (void);
 int
 main (int argc, char *argv[])
 {
-  /* Default values for command line options.  */
-  unsigned short int show_variables = 0;
-
   switch (argc)
 	{
 	case 1:
@@ -88,7 +85,6 @@ main (int argc, char *argv[])
 	  /* git sh-i18n--envsubst --variables '$foo and $bar' */
 	  if (strcmp(argv[1], "--variables"))
 		error ("first argument must be --variables when two are given");
-	  show_variables = 1;
       print_variables (argv[2]);
 	  break;
 	default:

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-05-25 19:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-24 21:07 Simple dead assignment Chris Wilson
2011-05-24 22:45 ` [PATCH] " Chris Wilson
2011-05-25  7:52   ` Matthieu Moy
2011-05-25 15:06     ` [PATCH] Remove a " Chris Wilson
2011-05-25 15:50       ` Matthieu Moy
2011-05-25 17:18       ` Michael Schubert
2011-05-25 18:45         ` Chris Wilson
2011-05-25 19:11           ` Junio C Hamano
2011-05-25 19:23             ` Junio C Hamano
2011-05-25 19:45               ` Jeff King

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).