[PATCH mig] Fix format string build failure with _FORTIFY_SOURCE=2
* parser.y (yyerror): Use a format string instead of directly passing the argument to error. --- parser.y |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.y b/parser.y index cc149da..ade56be 100644 --- a/parser.y +++ b/parser.y @@ -131,7 +131,7 @@ static const char *import_name(statement_kind_t sk); void yyerror(const char *s) { -error(s); +error(%s, s); } %} -- 1.7.10
Re: [PATCH mig] Fix format string build failure with _FORTIFY_SOURCE=2
Guillem Jover, le Sun 01 Jul 2012 11:13:28 +0200, a écrit : * parser.y (yyerror): Use a format string instead of directly passing the argument to error. Applied, thanks. Don't you have commit access to the savannah repo? Such patches really don't need review :) Samuel