From: Joel E. Denny Date: Mon, 28 Mar 2011 02:38:32 +0000 (-0400) Subject: Add -Wconflicts-sr and -Wconflicts-rr. X-Git-Tag: v2.5_rc1~8 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/6f8bdce25df5669b0b200c2a3848a1c08a44eb79?hp=6f8bdce25df5669b0b200c2a3848a1c08a44eb79 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 . * 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. ---