Slightly simplify printing binary operators.
[cparser] / warning.c
index 5684886..e2014d2 100644 (file)
--- 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);