From: Kenneth Graunke Date: Sat, 13 Jul 2013 06:18:44 +0000 (-0700) Subject: glsl: Fail the build if the grammar contains shift/reduce errors. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ab7fc9ec345eab7a019174d513a918626c61dcf;p=mesa.git glsl: Fail the build if the grammar contains shift/reduce errors. When working on a parser, it's very easy to accidentally introduce new shift/reduce conflicts. Failing the build guarantees they'll be noticed and fixed. Signed-off-by: Kenneth Graunke Reviewed-by: Chris Forbes --- diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index e4b7ff7dbdf..25bcc653d3c 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -41,6 +41,8 @@ static void yyerror(YYLTYPE *loc, _mesa_glsl_parse_state *st, const char *msg) } %} +%expect 0 + %pure-parser %error-verbose