diff options
author | Erik Faye-Lund <[email protected]> | 2019-05-20 13:29:05 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-05-21 11:31:43 +0000 |
commit | eb85124a9f6e9cb94d0d4a99f91bbae374777e3a (patch) | |
tree | f06be0bbc884473fa36f094bd99cf8e44bbd37d9 /src/compiler | |
parent | 67f94968936ea84335a37afbc36033dbc7353c95 (diff) |
glsl: do not use deprecated bison-keyword
%error-verbose has been deprecated since Bison 3.0, which was released
in 2013. In Bison 3.3.1 which was recently released, this has started
causing warnings. Let's update the code to do this in the modern way
intead, to avoid cluttering the output needlessly.
Signed-off-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/glcpp/glcpp-parse.y | 2 | ||||
-rw-r--r-- | src/compiler/glsl/glsl_parser.yy | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/glcpp/glcpp-parse.y b/src/compiler/glsl/glcpp/glcpp-parse.y index 1c095cb66f9..736af7e680d 100644 --- a/src/compiler/glsl/glcpp/glcpp-parse.y +++ b/src/compiler/glsl/glcpp/glcpp-parse.y @@ -155,7 +155,7 @@ add_builtin_define(glcpp_parser_t *parser, const char *name, int value); %} %pure-parser -%error-verbose +%define parse.error verbose %locations %initial-action { diff --git a/src/compiler/glsl/glsl_parser.yy b/src/compiler/glsl/glsl_parser.yy index 6426f890b9e..dc6aade2643 100644 --- a/src/compiler/glsl/glsl_parser.yy +++ b/src/compiler/glsl/glsl_parser.yy @@ -81,7 +81,7 @@ static bool match_layout_qualifier(const char *s1, const char *s2, %expect 0 %pure-parser -%error-verbose +%define parse.error verbose %locations %initial-action { |