From: Chad Rosier Date: Thu, 18 Aug 2011 02:08:52 +0000 (+0000) Subject: No seriously, remove the unsupported warning options. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e9e74b0cc298f206dcb173bd056da8556010202;p=clang No seriously, remove the unsupported warning options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137918 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 36affd6494..295ab32aee 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -2451,7 +2451,7 @@ void darwin::CC1::RemoveCC1UnsupportedArgs(ArgStringList &CmdArgs) const { const char *Option = *it; // We only remove warning options. - if (!strncmp(Option, "-W", 2)) { + if (strncmp(Option, "-W", 2)) { ++it; continue; }