X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=warning.c;h=e2014d20bbf959233ef190b2a71caa9e5865e69b;hb=c58c01e7c180f68d3d3a721997693abcc6e26352;hp=5684886dc97271660372c2c4de5b508fce6242f8;hpb=ba0d46aeb8456932335728047230840ef65fdcf4;p=cparser diff --git a/warning.c b/warning.c index 5684886..e2014d2 100644 --- a/warning.c +++ b/warning.c @@ -46,6 +46,9 @@ warning_t warning = { .multichar = true, .nested_externs = false, .nonnull = true, + .old_style_definition = false, + .packed = false, + .padded = false, .pointer_arith = true, .redundant_decls = true, .return_type = true, @@ -117,7 +120,7 @@ void set_warning_opt(const char *const opt) 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") { @@ -151,7 +154,10 @@ void set_warning_opt(const char *const opt) OPT("multichar", multichar); OPT("nested-externs", nested_externs); OPT("nonnull", nonnull); - OPT("pointer_arith", pointer_arith); + OPT("old-style-definition", old_style_definition); + OPT("packed", packed); + OPT("padded", padded); + OPT("pointer-arith", pointer_arith); OPT("redundant-decls", redundant_decls); OPT("return-type", return_type); OPT("shadow", shadow);