pass -w flag on to preprocessor
authorMatthias Braun <matze@braunis.de>
Tue, 6 Sep 2011 15:25:42 +0000 (17:25 +0200)
committerMatthias Braun <matze@braunis.de>
Mon, 12 Sep 2011 07:55:35 +0000 (09:55 +0200)
main.c

diff --git a/main.c b/main.c
index 3aa815b..32b49fb 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1166,6 +1166,7 @@ int main(int argc, char **argv)
                        } else if (SINGLE_OPTION('v')) {
                                verbose = 1;
                        } else if (SINGLE_OPTION('w')) {
+                               add_flag(&cppflags_obst, "-w");
                                disable_all_warnings();
                        } else if (option[0] == 'x') {
                                const char *opt;