mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 17:10:11 +01:00
glsl_compiler: Remove unused extra argument to printf in usage_fail
Flagged by Oracle's parfait static analyzer:
Error: Format string argument mismatch (CWE 628)
In call to printf with format string "usage: %s [options] <file.vert | file.geom | file.frag>\n\nPossible options are:\n"
Too many arguments for format string (got more than 1 arguments)
at line 285 of src/glsl/main.cpp in function 'usage_fail'.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
00d8733120
commit
cb277cde6f
1 changed files with 1 additions and 1 deletions
|
|
@ -282,7 +282,7 @@ usage_fail(const char *name)
|
|||
"usage: %s [options] <file.vert | file.geom | file.frag>\n"
|
||||
"\n"
|
||||
"Possible options are:\n";
|
||||
printf(header, name, name);
|
||||
printf(header, name);
|
||||
for (const struct option *o = compiler_opts; o->name != 0; ++o) {
|
||||
printf(" --%s\n", o->name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue