forked from OSchip/llvm-project
parent
bae1c0b23b
commit
ee403fa613
|
|
@ -2451,7 +2451,7 @@ void darwin::CC1::RemoveCC1UnsupportedArgs(ArgStringList &CmdArgs) const {
|
|||
const char *Option = *it;
|
||||
|
||||
// We only remove warning options.
|
||||
if (!strncmp(Option, "-W", 3)) {
|
||||
if (!strncmp(Option, "-W", 2)) {
|
||||
++it;
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue