Skip to content

Commit 600a6a6

Browse files
Michael J Grubergitster
authored andcommitted
sh-18n: quell "unused variable" warning
show_variables is set but never used. Comment it out rather than remove it so that the relation with upstream remains clear. Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 55601c6 commit 600a6a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sh-i18n--envsubst.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ int
6868
main (int argc, char *argv[])
6969
{
7070
/* Default values for command line options. */
71-
unsigned short int show_variables = 0;
71+
/* unsigned short int show_variables = 0; */
7272

7373
switch (argc)
7474
{
@@ -88,7 +88,7 @@ main (int argc, char *argv[])
8888
/* git sh-i18n--envsubst --variables '$foo and $bar' */
8989
if (strcmp(argv[1], "--variables"))
9090
error ("first argument must be --variables when two are given");
91-
show_variables = 1;
91+
/* show_variables = 1; */
9292
print_variables (argv[2]);
9393
break;
9494
default:

0 commit comments

Comments
 (0)