[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/3] warnings: warnings as errors improved
From: |
Theophile Ranquet |
Subject: |
[PATCH 0/3] warnings: warnings as errors improved |
Date: |
Thu, 27 Sep 2012 10:52:44 +0000 |
These patches introduce a more versatile -Werror option.
The -Werror option had the problem of enabling the error treatment of warnings
for all categories of warnings. The new version of this option adds support for
a -Werror[=CATEGORY] syntax, 'à la' gcc.
For even further consistency, these patches also change to the report format of
warnings treated as errors, in a manner inspired by gcc's behavior.
For example, 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]
With these modifications, it now is:
input.y:1.1: error: stray ',' treated as white space [-Werror=other]
These changes should contribute to the overall convenience of -Werror.
Theophile Ranquet (3):
errors: introduce the -Werror=CATEGORY option
errors: change output, and improve -y coherence
errors: don't display "warnings treated as errors"
NEWS | 51 ++++++++++++++++++++++++++++++++++++++++++------
TODO | 5 +++++
doc/bison.texi | 24 ++++++++++++++++++++++-
src/complain.c | 61 +++++++++++++++-------------------------------------------
src/complain.h | 23 +++++++++++-----------
src/getargs.c | 48 +++++++++++++++++++++++++++++++--------------
tests/input.at | 9 ++++-----
7 files changed, 137 insertions(+), 84 deletions(-)
--
1.7.11.4
- [PATCH 0/3] warnings: warnings as errors improved,
Theophile Ranquet <=