]> git.saurik.com Git - bison.git/commit
Finish implementing --warnings=error, which should not be implied by
authorJoel E. Denny <jdenny@ces.clemson.edu>
Wed, 1 Nov 2006 01:47:44 +0000 (01:47 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Wed, 1 Nov 2006 01:47:44 +0000 (01:47 +0000)
commit89eb3c76532c0c5f9f3207474c55c300a239fce8
tree9b68631db2978b11416301db06e58575296a4ded
parentba7560e26bfa2f5a340545830d46e0437fcb701a
Finish implementing --warnings=error, which should not be implied by
--warnings=all (or by its synonyms -W and --warnings without
subarguments).
* src/complain.c (set_warning_issued): New function to report that
warnings are being treated as errors and to record an error if so.
Invoke...
(warn_at, warn): ... here.
* src/getargs.c (warnings_args, warnings_types): Reorder so that
"error - warnings are errors" does not appear above "all - all of the
above".
(getargs): For -W and --warnings without subarguments, don't let
FLAGS_ARGMATCH set warnings_error in warnings_flag.
* src/getargs.h (enum warnings): Unset warnings_error in warnings_all.
ChangeLog
src/complain.c
src/getargs.c
src/getargs.h