mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 07:30:09 +01:00
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 <kenneth@whitecape.org> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
This commit is contained in:
parent
73620709c9
commit
4ab7fc9ec3
1 changed files with 2 additions and 0 deletions
|
|
@ -41,6 +41,8 @@ static void yyerror(YYLTYPE *loc, _mesa_glsl_parse_state *st, const char *msg)
|
|||
}
|
||||
%}
|
||||
|
||||
%expect 0
|
||||
|
||||
%pure-parser
|
||||
%error-verbose
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue