]> granicus.if.org Git - clang/commitdiff
Pass '-Wno-' options to clang-cc. This fixes <rdar://problem/6943988>.
authorTed Kremenek <kremenek@apple.com>
Fri, 14 Aug 2009 18:20:50 +0000 (18:20 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 14 Aug 2009 18:20:50 +0000 (18:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79011 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc-analyzer

index 598e7024e9900a0be9eea69c576387c755407c2a..e60c69425e74cbeaf77368dc0b57bcdc30c7b87e 100755 (executable)
@@ -539,11 +539,20 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) {
     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;
   }
 }