mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
Fix -Wunused-but-set-variable warnings (#315)
This commit is contained in:
parent
d196fb3cb9
commit
9a05f6b3fa
3 changed files with 3 additions and 4 deletions
|
|
@ -98,6 +98,8 @@ parse_cmdline(int argc, char **argv, opt_option *options, size_t nopts,
|
|||
}
|
||||
}
|
||||
|
||||
(void) warnings;
|
||||
|
||||
DEBUG((stderr, "parse_cmdline: finished\n"));
|
||||
return errors;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -184,6 +184,7 @@ parse_cmdline(int argc, char **argv, opt_option *options, size_t nopts,
|
|||
}
|
||||
}
|
||||
|
||||
(void) warnings;
|
||||
DEBUG((stderr, "parse_cmdline: finished\n"));
|
||||
return errors;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,8 +40,6 @@ main(int argc, char *argv[])
|
|||
char *strp;
|
||||
char *charp;
|
||||
int fline;
|
||||
int line = 0;
|
||||
int lindex = 0;
|
||||
size_t len;
|
||||
|
||||
if (argc < 4) {
|
||||
|
|
@ -74,7 +72,6 @@ main(int argc, char *argv[])
|
|||
fline = 0;
|
||||
|
||||
while (fgets(str, MAXLINE, in)) {
|
||||
line++;
|
||||
fline++;
|
||||
|
||||
strp = str;
|
||||
|
|
@ -119,7 +116,6 @@ main(int argc, char *argv[])
|
|||
strp++;
|
||||
}
|
||||
fprintf(out, "\",\n");
|
||||
lindex++;
|
||||
}
|
||||
|
||||
fclose(in);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue