5 void set_warning_opt(const char *const opt)
11 if (s[0] == 'n' && s[1] == 'o' && s[2] == '-') {
17 #define OPTX(x) else if (strcmp(s, x) == 0)
18 #define SET(y) warning.y = state;
19 #define OPT(x, y) OPTX(x) SET(y)
20 OPT("char-subscripts", char_subscripts)
21 OPT("error", s_are_errors)
22 OPT("fatal-errors", fatal_errors)
23 OPT("format", check_format)
25 SET(implicit_function_declaration)
28 OPT("implicit-function-declaration", implicit_function_declaration)
29 OPT("implicit-int", implicit_int)
30 OPT("missing-declarations", missing_declarations)
31 OPT("missing-prototypes", missing_prototypes)
32 OPT("redundant-decls", redundant_decls)
33 OPT("strict-prototypes", strict_prototypes)
43 OPT("unused-value", unused_value)
48 fprintf(stderr, "warning: ignoring unknown option -W%s\n", opt);
53 .char_subscripts = true,
55 .implicit_function_declaration = true,
57 .missing_declarations = true,
58 .missing_prototypes = true,
59 .strict_prototypes = true,
60 .redundant_decls = true,