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>
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy
index e4b7ff7..25bcc65 100644
--- a/src/glsl/glsl_parser.yy
+++ b/src/glsl/glsl_parser.yy
@@ -41,6 +41,8 @@
}
%}
+%expect 0
+
%pure-parser
%error-verbose