Add new option -w and pass it through ignore_warnings_p.
@@ -193,9 +193,10 @@ static void init_options (int argc, char *argv[]) {
int incl_p, ldir_p = FALSE; /* to remove an uninitialized warning */
options.message_file = stderr;
- options.debug_p = options.verbose_p = options.asm_p = options.object_p = FALSE;
options.output_file_name = NULL;
- options.no_prepro_p = options.prepro_only_p = options.syntax_only_p = options.pedantic_p = FALSE;
+ options.debug_p = options.verbose_p = options.ignore_warnings_p = FALSE;
+ options.asm_p = options.object_p = options.no_prepro_p = options.prepro_only_p = FALSE;
+ options.syntax_only_p = options.pedantic_p = FALSE;
gen_debug_p = FALSE;
VARR_CREATE (char, temp_string, 0);
VARR_CREATE (char_ptr_t, headers, 0);
@@ -210,6 +211,8 @@ static void init_options (int argc, char *argv[]) {
options.asm_p = TRUE;
} else if (strcmp (argv[i], "-c") == 0) {
options.object_p = TRUE;
+ } else if (strcmp (argv[i], "-w") == 0) {
+ options.ignore_warnings_p = TRUE;
} else if (strcmp (argv[i], "-v") == 0) {
options.verbose_p = TRUE;
} else if (strcmp (argv[i], "-E") == 0) {
