diff options
author | Carl Worth <[email protected]> | 2011-01-29 08:19:39 +1000 |
---|---|---|
committer | Carl Worth <[email protected]> | 2011-01-29 08:21:05 +1000 |
commit | 2a18d1950c84c96d263cc8f15434502e03aeb1dc (patch) | |
tree | bd9cf19acb8d21ad2d77a1b54060c3b100ff45b7 /src/glsl/glcpp/glcpp-parse.y | |
parent | 3451ee056c8703f0d09bfab33d5fa224d4649bc4 (diff) |
Revert "glcpp: Demote "macro redefined" from an error to a warning"
This reverts commit d3df641f0aba99b0b65ecd4d9b06798bca090a29.
The original commit had sat unpushed on my machine for months. By the
time I found it again, I had forgotten that we had decided not to use
this change after all, (the relevant test was removed long ago).
Diffstat (limited to 'src/glsl/glcpp/glcpp-parse.y')
-rw-r--r-- | src/glsl/glcpp/glcpp-parse.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index 797e614280b..b449eb288b8 100644 --- a/src/glsl/glcpp/glcpp-parse.y +++ b/src/glsl/glcpp/glcpp-parse.y @@ -1687,8 +1687,8 @@ _define_object_macro (glcpp_parser_t *parser, talloc_free (macro); return; } - glcpp_warning (loc, parser, "Redefinition of macro %s\n", - identifier); + glcpp_error (loc, parser, "Redefinition of macro %s\n", + identifier); } hash_table_insert (parser->defines, macro, identifier); @@ -1718,8 +1718,8 @@ _define_function_macro (glcpp_parser_t *parser, talloc_free (macro); return; } - glcpp_warning (loc, parser, "Redefinition of macro %s\n", - identifier); + glcpp_error (loc, parser, "Redefinition of macro %s\n", + identifier); } hash_table_insert (parser->defines, macro, identifier); |