Mesa (master): mesa: Fix printf-like warning.
Vinson Lee
vlee at kemper.freedesktop.org
Thu Sep 2 23:13:39 UTC 2010
Module: Mesa
Branch: master
Commit: 3888c38fc9e7debc53a901295af0027801c4ae74
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3888c38fc9e7debc53a901295af0027801c4ae74
Author: Vinson Lee <vlee at vmware.com>
Date: Thu Sep 2 16:12:58 2010 -0700
mesa: Fix printf-like warning.
---
src/mesa/program/program_parse.tab.c | 2 +-
src/mesa/program/program_parse.y | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/program/program_parse.tab.c b/src/mesa/program/program_parse.tab.c
index 31a6096..08ead30 100644
--- a/src/mesa/program/program_parse.tab.c
+++ b/src/mesa/program/program_parse.tab.c
@@ -5589,7 +5589,7 @@ yyerror(YYLTYPE *locp, struct asm_parser_state *state, const char *s)
err_str = make_error_string("glProgramStringARB(%s)\n", s);
if (err_str) {
- _mesa_error(state->ctx, GL_INVALID_OPERATION, err_str);
+ _mesa_error(state->ctx, GL_INVALID_OPERATION, "%s", err_str);
free(err_str);
}
diff --git a/src/mesa/program/program_parse.y b/src/mesa/program/program_parse.y
index fb6ef85..cf621ae 100644
--- a/src/mesa/program/program_parse.y
+++ b/src/mesa/program/program_parse.y
@@ -2628,7 +2628,7 @@ yyerror(YYLTYPE *locp, struct asm_parser_state *state, const char *s)
err_str = make_error_string("glProgramStringARB(%s)\n", s);
if (err_str) {
- _mesa_error(state->ctx, GL_INVALID_OPERATION, err_str);
+ _mesa_error(state->ctx, GL_INVALID_OPERATION, "%s", err_str);
free(err_str);
}
More information about the mesa-commit
mailing list