errors: introduce the -Werror=CATEGORY option
authorTheophile Ranquet <theophile.ranquet@gmail.com>
Thu, 27 Sep 2012 10:52:45 +0000 (10:52 +0000)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 27 Sep 2012 09:08:07 +0000 (11:08 +0200)
commit9503b0a4a8928afa0fdab88672f6127ee7e87963
tree1d7d9703784cf8ac339cd389a6cca644f3b2373f
parent11b192127cac086338bfaa43f3bab3acda8e3a20
errors: introduce the -Werror=CATEGORY option

This new option is a lot more flexible than the previous one. Its
details will be discussed in the NEWS and info file, in a forthcoming
change.

If no category is specified (ie: used as simply "-Werror"), the
functionality is the same as before.

* src/complain.c (errors_flag): New variable.
(set_warning_issued): Accept warning categories as an argument.
* src/complain.h (Wall): Better definition.
* src/getargs.c (flags_argmatch): Support for the new format.
(usage): Update -Werror to -Werror[=CATEGORY] format.

* src/complain.c (errors_flag): New variable.
(set_warning_issued): Accept warning categories as an argument.
* src/complain.h (Wall): Better definition.
* src/getargs.c (flags_argmatch): Support for the new format.
(usage): Update -Werror to -Werror=[CATEGORY] format.

Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
NEWS
src/complain.c
src/complain.h
src/getargs.c