warnings: move them to complain.c.

* src/getargs.h, src/getargs.c (warnings, warnings_flags): Move to...
* src/complain.h, src/complain.c: Here.
This commit is contained in:
Victor Santet
2012-06-28 16:44:20 +02:00
committed by Akim Demaille
parent 327db05b22
commit d0f11c1b62
4 changed files with 21 additions and 20 deletions

View File

@@ -108,24 +108,6 @@ enum trace
/** What debug items bison displays during its run. */
extern int trace_flag;
/*-------------.
| --warnings. |
`-------------*/
enum warnings
{
Wnone = 0, /**< Issue no warnings. */
Werror = 1 << 0, /**< Warnings are treated as errors. */
Wmidrule_values = 1 << 1, /**< Unset or unused midrule values. */
Wyacc = 1 << 2, /**< POSIXME. */
Wconflicts_sr = 1 << 3, /**< S/R conflicts. */
Wconflicts_rr = 1 << 4, /**< R/R conflicts. */
Wother = 1 << 5, /**< All other warnings. */
Wall = ~Werror /**< All above warnings. */
};
/** What warnings are issued. */
extern int warnings_flag;
/** Process the command line arguments.
*