.main = true,
.missing_declarations = false,
.missing_prototypes = false,
+ .multichar = true,
.redundant_decls = true,
.s_are_errors = false,
+ .shadow = false,
+ .sign_compare = false,
.strict_prototypes = true,
.switch_default = false,
.unknown_pragmas = true,
#define SET(y) 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 */
SET(char_subscripts)
SET(check_format)
SET(empty_statement)
SET(implicit_int)
SET(main)
SET(redundant_decls)
+ SET(shadow)
+ SET(sign_compare)
SET(strict_prototypes)
- SET(switch_default)
SET(unknown_pragmas)
SET(unused_function)
SET(unused_label)
OPT("main", main)
OPT("missing-declarations", missing_declarations)
OPT("missing-prototypes", missing_prototypes)
+ OPT("multichar", multichar)
OPT("redundant-decls", redundant_decls)
+ OPT("shadow", shadow)
+ OPT("sign-compare", sign_compare)
OPT("strict-prototypes", strict_prototypes)
OPT("switch-default", switch_default)
OPT("unknown-pragmas", unknown_pragmas)