]> git.saurik.com Git - bison.git/commit
-Werror: fix for rules useless in parser after conflicts.
authorJoel E. Denny <joeldenny@joeldenny.org>
Sun, 1 Aug 2010 22:51:46 +0000 (18:51 -0400)
committerJoel E. Denny <joeldenny@joeldenny.org>
Mon, 2 Aug 2010 02:31:10 +0000 (22:31 -0400)
commit954474bfa1a875eeefe9aa1989d9c7be6f64726b
tree2117fc5f31592c99fd44a6996809175b65d2f257
parent122ff4442985540837fae4b4c904c7018a1a3d38
-Werror: fix for rules useless in parser after conflicts.

* NEWS (2.4.3): Document fix.
* src/complain.c (error_message): Extend to handle incomplete
error messages so warn and warn_at can be used in more cases.
* src/gram.c (grammar_rules_useless_report): Use warn_at so that
-Werror is always obeyed.
* src/reduce.c (reduce_print): Use warn so that the "warnings
being treated as errors" message is printed consistently before
the first warning message.  This makes testing easier.
* tests/local.at (AT_BISON_WERROR_MSG): New macro.
(AT_BISON_CHECK_NO_XML): Extend to check -Werror and
--warnings=error when warnings appear in bison's stderr.
ChangeLog
NEWS
src/complain.c
src/gram.c
src/reduce.c
tests/local.at