summaryrefslogtreecommitdiffstats
path: root/src/glsl/main.cpp
diff options
context:
space:
mode:
authorAlan Coopersmith <[email protected]>2015-05-23 00:03:53 -0700
committerAlan Coopersmith <[email protected]>2015-06-04 19:01:16 -0700
commitcb277cde6f2a210b0515cd04269964fd409307e9 (patch)
tree02c8651480f4e991be2f82610deefaada15cbfb4 /src/glsl/main.cpp
parent00d8733120276fc5bdd3ecb7fea6e04b7940d71b (diff)
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 <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/main.cpp')
-rw-r--r--src/glsl/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp
index ccac8399646..4b39c9e54c2 100644
--- a/src/glsl/main.cpp
+++ b/src/glsl/main.cpp
@@ -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);
}