X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=warning.c;h=77649d67ca974c6990a3969ee3d6db4716b31c8c;hb=a25daef22bc375bea28f7c8965c69edec5679e84;hp=3867718b94c53033146cafad8d85db6d92c834d0;hpb=c11735796c1b549c1c68fe3060b5247ec09c09dd;p=cparser diff --git a/warning.c b/warning.c index 3867718..77649d6 100644 --- a/warning.c +++ b/warning.c @@ -22,6 +22,9 @@ #include "warning.h" warning_t warning = { + .other = true, + + .address = true, .aggregate_return = false, .attribute = true, .cast_qual = false, @@ -86,7 +89,10 @@ void set_warning_opt(const char *const opt) #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); @@ -112,6 +118,7 @@ void set_warning_opt(const char *const opt) SET(unused_value); SET(unused_variable); } + OPT("address", address); OPT("aggregate-return", aggregate_return); OPT("attribute", attribute); OPT("cast-qual", cast_qual); @@ -157,7 +164,7 @@ void set_warning_opt(const char *const opt) 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);