]> git.saurik.com Git - bison.git/commit - src/complain.h
diagnostics: %empty enables -Wempty-rule
authorAkim Demaille <akim@lrde.epita.fr>
Sat, 16 Feb 2013 08:23:48 +0000 (09:23 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Mon, 18 Feb 2013 09:01:28 +0000 (10:01 +0100)
commit42d101da8dff74111b409fb92bd2b0853067d857
treed4f9917dec665439e686f73966f77ef438d5775c
parentf68a49ed4942714616e692f0fa2a8315368bae3b
diagnostics: %empty enables -Wempty-rule

* src/complain.h, src/complain.c (warning_is_unset): New.
* src/reader.c (grammar_current_rule_empty_set): If enabled -Wempty-rule,
if not disabled.
* tests/actions.at (Implicitly empty rule): Check this feature.
Also check that -Wno-empty-rule does disable this warning.
src/complain.c
src/complain.h
src/reader.c
tests/actions.at