Author: kremenek
Date: Fri Aug 14 13:20:50 2009
New Revision: 79011
URL: http://llvm.org/viewvc/llvm-project?rev=79011&view=rev
Log:
Pass '-Wno-' options to clang-cc. This fixes <rdar://problem/6943988>.
Modified:
cfe/trunk/utils/ccc-analyzer
Modified: cfe/trunk/utils/ccc-analyzer
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc-analyzer?rev=79011&r1=79010&r2=79011&view=diff
==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Fri Aug 14 13:20:50 2009
@@ -539,11 +539,20 @@
open(IN, $ARGV[$i+1]);
while (<IN>) { s/\015?\012//; push @Files,$_; }
close(IN);
- ++$i; next;
+ ++$i;
+ next;
}
+ # Handle -Wno-. We don't care about extra warnings, but
+ # we should suppress ones that we don't want to see.
+ if ($Arg =~ /^-Wno-/) {
+ push @CompileOpts, $Arg;
+ next;
+ }
+
if (!($Arg =~ /^-/)) {
- push @Files,$Arg; next;
+ push @Files, $Arg;
+ next;
}
}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits