we can safely enable set_opt_sel_based_null_check_elim() because we use Sel's only...
[cparser] / warning.c
index 05195e6..c93ed20 100644 (file)
--- a/warning.c
+++ b/warning.c
 #include "warning.h"
 
 warning_t warning = {
+       .attribute                     = true,
        .char_subscripts               = true,
-       .check_format                  = true,
+       .format                        = true,
+       .nonnull                       = true,
        .empty_statement               = false,
        .fatal_errors                  = false,
        .float_equal                   = false,
@@ -65,8 +67,10 @@ void set_warning_opt(const char *const opt)
 #define OPT(x, y) OPTX(x) SET(y)
        OPTX("all") {
                /* Note: this switched on a lot of more warnings than gcc's -Wall */
+               SET(attribute)
                SET(char_subscripts)
-               SET(check_format)
+               SET(format)
+               SET(nonnull)
                SET(empty_statement)
                SET(implicit_function_declaration)
                SET(implicit_int)
@@ -82,6 +86,7 @@ void set_warning_opt(const char *const opt)
                SET(unused_value)
                SET(unused_variable)
        }
+       OPT("attribute",                     attribute)
        OPT("char-subscripts",               char_subscripts)
        OPT("empty-statement",               empty_statement)
        OPT("error",                         s_are_errors)
@@ -97,7 +102,11 @@ void set_warning_opt(const char *const opt)
        }
        OPT("fatal-errors",                  fatal_errors)
        OPT("float-equal",                   float_equal)
-       OPT("format",                        check_format)
+       OPTX("format") {
+               SET(format)
+               SET(nonnull)
+       }
+       OPT("nonnull",                       nonnull)
        OPTX("implicit") {
                SET(implicit_function_declaration)
                SET(implicit_int)