Revert "glcpp: Demote "macro redefined" from an error to a warning"

This reverts commit d3df641f0a.

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).
This commit is contained in:
Carl Worth
2011-01-29 08:19:39 +10:00
parent 3451ee056c
commit 2a18d1950c
4 changed files with 15 additions and 38 deletions
+4 -4
View File
@@ -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);