Slightly simplify printing binary operators.
[cparser] / warning.c
index 954d2fc..e2014d2 100644 (file)
--- a/warning.c
+++ b/warning.c
@@ -120,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") {
@@ -157,7 +157,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);