- case OPT_W:
- /* Silently ignore unrecognised options. */
- if (!strcmp (argv[i], "-Wall"))
- {
- CPP_OPTION (pfile, warn_trigraphs) = 1;
- CPP_OPTION (pfile, warn_comments) = 1;
- }
- else if (!strcmp (argv[i], "-Wtraditional"))
- CPP_OPTION (pfile, warn_traditional) = 1;
- else if (!strcmp (argv[i], "-Wtrigraphs"))
- CPP_OPTION (pfile, warn_trigraphs) = 1;
- else if (!strcmp (argv[i], "-Wcomment"))
- CPP_OPTION (pfile, warn_comments) = 1;
- else if (!strcmp (argv[i], "-Wcomments"))
- CPP_OPTION (pfile, warn_comments) = 1;
- else if (!strcmp (argv[i], "-Wundef"))
- CPP_OPTION (pfile, warn_undef) = 1;
- else if (!strcmp (argv[i], "-Wimport"))
- CPP_OPTION (pfile, warn_import) = 1;
- else if (!strcmp (argv[i], "-Werror"))
- CPP_OPTION (pfile, warnings_are_errors) = 1;
- else if (!strcmp (argv[i], "-Wsystem-headers"))
- CPP_OPTION (pfile, warn_system_headers) = 1;
- else if (!strcmp (argv[i], "-Wendif-labels"))
- CPP_OPTION (pfile, warn_endif_labels) = 1;
- else if (!strcmp (argv[i], "-Wno-traditional"))
- CPP_OPTION (pfile, warn_traditional) = 0;
- else if (!strcmp (argv[i], "-Wno-trigraphs"))
- CPP_OPTION (pfile, warn_trigraphs) = 0;
- else if (!strcmp (argv[i], "-Wno-comment"))
- CPP_OPTION (pfile, warn_comments) = 0;
- else if (!strcmp (argv[i], "-Wno-comments"))
- CPP_OPTION (pfile, warn_comments) = 0;
- else if (!strcmp (argv[i], "-Wno-undef"))
- CPP_OPTION (pfile, warn_undef) = 0;
- else if (!strcmp (argv[i], "-Wno-import"))
- CPP_OPTION (pfile, warn_import) = 0;
- else if (!strcmp (argv[i], "-Wno-error"))
- CPP_OPTION (pfile, warnings_are_errors) = 0;
- else if (!strcmp (argv[i], "-Wno-system-headers"))
- CPP_OPTION (pfile, warn_system_headers) = 0;
- else if (!strcmp (argv[i], "-Wno-endif-labels"))
- CPP_OPTION (pfile, warn_endif_labels) = 0;
- else if (! ignore)
- return i;
+
+ case OPT_Wall:
+ CPP_OPTION (pfile, warn_trigraphs) = 1;
+ CPP_OPTION (pfile, warn_comments) = 1;
+ break;
+
+ case OPT_Wtraditional:
+ CPP_OPTION (pfile, warn_traditional) = 1;
+ break;
+ case OPT_Wno_traditional:
+ CPP_OPTION (pfile, warn_traditional) = 0;
+ break;
+
+ case OPT_Wtrigraphs:
+ CPP_OPTION (pfile, warn_trigraphs) = 1;
+ break;
+ case OPT_Wno_trigraphs:
+ CPP_OPTION (pfile, warn_trigraphs) = 0;
+ break;
+
+ case OPT_Wcomment:
+ case OPT_Wcomments:
+ CPP_OPTION (pfile, warn_comments) = 1;
+ break;
+ case OPT_Wno_comment:
+ case OPT_Wno_comments:
+ CPP_OPTION (pfile, warn_comments) = 0;
+ break;
+
+ case OPT_Wundef:
+ CPP_OPTION (pfile, warn_undef) = 1;
+ break;
+ case OPT_Wno_undef:
+ CPP_OPTION (pfile, warn_undef) = 0;
+ break;
+
+ case OPT_Wimport:
+ CPP_OPTION (pfile, warn_import) = 1;
+ break;
+ case OPT_Wno_import:
+ CPP_OPTION (pfile, warn_import) = 0;
+ break;
+
+ case OPT_Wendif_labels:
+ CPP_OPTION (pfile, warn_endif_labels) = 1;
+ break;
+ case OPT_Wno_endif_labels:
+ CPP_OPTION (pfile, warn_endif_labels) = 0;
+ break;
+
+ case OPT_Werror:
+ CPP_OPTION (pfile, warnings_are_errors) = 1;
+ break;
+ case OPT_Wno_error:
+ CPP_OPTION (pfile, warnings_are_errors) = 0;
+ break;
+
+ case OPT_Wsystem_headers:
+ CPP_OPTION (pfile, warn_system_headers) = 1;
+ break;
+ case OPT_Wno_system_headers:
+ CPP_OPTION (pfile, warn_system_headers) = 0;