X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=warning.c;h=73297316c7aae53a4cfd2ea9d5db4edcf7cf676b;hb=3bfe0ebbeec975e63a9583c91ea5d5b3fe213164;hp=ad9f1aa7b472fc30ee64dd33a46eb76fe29f27e1;hpb=058328c716b73d02e008199153059ba6e8575d05;p=cparser diff --git a/warning.c b/warning.c index ad9f1aa..7329731 100644 --- a/warning.c +++ b/warning.c @@ -47,6 +47,7 @@ warning_t warning = { .sign_compare = false, .strict_prototypes = true, .switch_default = false, + .switch_enum = false, .unknown_pragmas = true, .unreachable_code = false, .unused_function = false, @@ -94,6 +95,7 @@ void set_warning_opt(const char *const opt) SET(unused_parameter); SET(unused_value); SET(unused_variable); + SET(switch_enum); } OPT("attribute", attribute); OPT("char-subscripts", char_subscripts); @@ -136,6 +138,7 @@ void set_warning_opt(const char *const opt) OPT("sign-compare", sign_compare); OPT("strict-prototypes", strict_prototypes); OPT("switch-default", switch_default); + OPT("switch-enum", switch_enum); OPT("unknown-pragmas", unknown_pragmas); OPT("unreachable-code", unreachable_code); OPTX("unused") {