diff options
author | Joel E. Denny <joeldenny@joeldenny.org> | 2011-03-27 22:38:32 -0400 |
---|---|---|
committer | Joel E. Denny <joeldenny@joeldenny.org> | 2011-04-09 13:01:41 -0400 |
commit | 786743d5eb46abd8510d0362f558e5271d080fd7 (patch) | |
tree | 04c810bb8b9a58155d92aeae34d9f7c377b8e792 /doc | |
parent | e4a148796a4af75b8728f5c4ec7d01a0cc654a27 (diff) | |
download | bison-786743d5eb46abd8510d0362f558e5271d080fd7.tar.gz |
Add -Wconflicts-sr and -Wconflicts-rr.
Thus, conflict reports are now affected by -Werror and -Wnone
(unless %expect or %expect-rr is specified). Reported by George
Neuner at
<http://lists.gnu.org/archive/html/bug-bison/2010-08/msg00002.html>.
* NEWS (2.5): Document.
* doc/bison.texinfo (Bison Options): Document.
* src/complain.c, src/complain.h (set_warning_issued): Export
function.
* src/conflicts.c (conflicts_print): Suppress conflict report
based on -Wno-conflicts-sr and -Wno-conflicts-rr, and treat
conflicts as errors if -Werror.
* src/getargs.c (warnings_flag): Initialize with
warnings_conflicts_sr and warnings_conflicts_rr as well.
(warnings_args, warnings_types): Add entries for
warnings_conflicts_sr and warnings_conflicts_rr.
(usage): Update.
* src/getargs.h (enum warnings): Add entries for
warnings_conflicts_sr and warnings_conflicts_rr.
* tests/conflicts.at (-W versus %expect and %expect-rr): New test
group.
* tests/local.at (AT_BISON_CHECK_NO_XML): Update now that the
conflict report can produce a "warnings being treated as errors"
message. Also, check that stderr is now fully scrubbed by -Wnone
when the exit status is 0.
(cherry picked from commit 6f8bdce25df5669b0b200c2a3848a1c08a44eb79)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/bison.texinfo | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/bison.texinfo b/doc/bison.texinfo index 1a1da530..ce86334d 100644 --- a/doc/bison.texinfo +++ b/doc/bison.texinfo @@ -8742,6 +8742,14 @@ be false alarms in existing grammars employing the Yacc constructs @item yacc Incompatibilities with POSIX Yacc. +@item conflicts-sr +@itemx conflicts-rr +S/R and R/R conflicts. These warnings are enabled by default. However, if +the @code{%expect} or @code{%expect-rr} directive is specified, an +unexpected number of conflicts is an error, and an expected number of +conflicts is not reported, so @option{-W} and @option{--warning} then have +no effect on the conflict report. + @item other All warnings not categorized above. These warnings are enabled by default. |