From: Vinson Lee Date: Thu, 2 Sep 2010 23:12:58 +0000 (-0700) Subject: mesa: Fix printf-like warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3888c38fc9e7debc53a901295af0027801c4ae74;p=mesa.git mesa: Fix printf-like warning. --- diff --git a/src/mesa/program/program_parse.tab.c b/src/mesa/program/program_parse.tab.c index 31a609600b7..08ead30defe 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 fb6ef85a9fc..cf621ae4244 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); }