Fix -Wunused-but-set-variable warnings (#315)

This commit is contained in:
Anonymous Maarten 2026-07-25 20:01:20 +02:00 committed by GitHub
parent d196fb3cb9
commit 9a05f6b3fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 4 deletions

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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);