#include "warning.h"
warning_t warning = {
+ .other = true,
+
+ .address = true,
.aggregate_return = false,
.attribute = true,
.cast_qual = false,
#define SET(y) (void)(warning.y = state)
#define OPT(x, y) OPTX(x) SET(y)
OPTX("all") {
- /* Note: this switched on a lot of more warnings than gcc's -Wall */
+ /* Note: this switched on a lot more warnings than gcc's -Wall */
+ SET(other);
+
+ SET(address);
SET(attribute);
SET(char_subscripts);
SET(comment);
SET(unused_value);
SET(unused_variable);
}
+ OPT("address", address);
OPT("aggregate-return", aggregate_return);
OPT("attribute", attribute);
OPT("cast-qual", cast_qual);
OPT("conversion", conversion);
OPT("declaration-after-statement", declaration_after_statement);
OPT("deprecated-declarations", deprecated_declarations);
- OPT("div_by_zero", div_by_zero);
+ OPT("div-by-zero", div_by_zero);
OPT("empty-statement", empty_statement);
OPT("error", s_are_errors);
OPTX("extra") {
OPT("old-style-definition", old_style_definition);
OPT("packed", packed);
OPT("padded", padded);
- OPT("pointer_arith", pointer_arith);
+ OPT("pointer-arith", pointer_arith);
OPT("redundant-decls", redundant_decls);
OPT("return-type", return_type);
OPT("shadow", shadow);