projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
459ce2d
)
-W switches are not allowed to have a whitespace after -W
author
Matthias Braun
<matze@braunis.de>
Fri, 14 Dec 2007 16:52:27 +0000
(16:52 +0000)
committer
Matthias Braun
<matze@braunis.de>
Fri, 14 Dec 2007 16:52:27 +0000
(16:52 +0000)
[r18741]
main.c
patch
|
blob
|
history
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') {
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");
} else if(arg[0] == '-' && arg[1] == 'm') {
const char *opt;
GET_ARG_AFTER(opt, "-m");