From 8ce2a8e5c21cb1520078f88e901527a7d83206b7 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 9 Mar 2010 21:37:35 +0000 Subject: [PATCH] implement -W [r27280] --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 27fff81..93b4dbe 100644 --- a/main.c +++ b/main.c @@ -935,7 +935,9 @@ int main(int argc, char **argv) strncpy(cpu_arch, opt, sizeof(cpu_arch)); } } else if (option[0] == 'W') { - if (strstart(option + 1, "p,")) { + if (option[1] == '\0') { + /* ignore -W, out defaults are already quiet verbose */ + } else if (strstart(option + 1, "p,")) { // pass options directly to the preprocessor const char *opt; GET_ARG_AFTER(opt, "-Wp,"); -- 2.20.1