errors: change output, and improve -y coherence
authorAkim Demaille <akim@lrde.epita.fr>
Thu, 27 Sep 2012 10:19:09 +0000 (12:19 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 27 Sep 2012 10:19:09 +0000 (12:19 +0200)
commit1048a1c90168c3cfb38eb54c6ab83b98af1bb43e
tree1ce067d7fcde9a444a97d95496a028c429bec9ec
parent9503b0a4a8928afa0fdab88672f6127ee7e87963
errors: change output, and improve -y coherence

The prefix of warnings treated as errors is now "error: ". Also, their
suffix now reflects the changes in the Werror option format.

An output for -Werror=other used to be:
  bison: warnings being treated as errors
  input.y:1.1: warning: stray ',' treated as white space [-Wother]

It is now:
  bison: warnings being treated as errors
  input.y:1.1: error: stray ',' treated as white space [-Werror=other]

The line "warnings being treated as errors" no longer adds any info,
it will be removed in a forthcoming change.

* NEWS: Add entry "Enhancement of the -Werror"
* doc/bison.texi: Move the warnings-as-error to a new bullet.
* src/complain.c (complains): Refactor, change the prefix of warnings
that are treated as errors.
(warnings_print_categories): Support for [-Werror=CATEGORY] display
* src/getargc.c (getargs): -y implies -Werror=yacc
* tests/input.at: Update expected --yacc output for coherence.

Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
NEWS
TODO
doc/bison.texi
src/complain.c
src/getargs.c
tests/input.at