-W switches are not allowed to have a whitespace after -W
authorMatthias Braun <matze@braunis.de>
Fri, 14 Dec 2007 16:52:27 +0000 (16:52 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 14 Dec 2007 16:52:27 +0000 (16:52 +0000)
[r18741]

main.c

diff --git a/main.c b/main.c
index 3ad74ba..bf7fdde 100644 (file)
--- a/main.c
+++ b/main.c
@@ -455,9 +455,7 @@ int main(int argc, char **argv)
                                help_displayed = true;
                        }
                } else if(arg[0] == '-' && arg[1] == 'W') {
-                       const char *opt;
-                       GET_ARG_AFTER(opt, "-W");
-                       set_warning_opt(opt);
+                       set_warning_opt(&arg[2]);
                } else if(arg[0] == '-' && arg[1] == 'm') {
                        const char *opt;
                        GET_ARG_AFTER(opt, "-m");