From 9f58170201abbf1d2ff4d6f9c3702f0cde3114b8 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 14 Dec 2007 16:52:27 +0000 Subject: [PATCH] -W switches are not allowed to have a whitespace after -W [r18741] --- main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.c b/main.c index 3ad74ba..bf7fdde 100644 --- 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"); -- 2.20.1