From 0895937d2ce1e73926b42e71f076be3071de68d9 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 14 Aug 2009 18:20:50 +0000 Subject: [PATCH] Pass '-Wno-' options to clang-cc. This fixes . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79011 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/ccc-analyzer | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer index 598e7024e9..e60c69425e 100755 --- a/utils/ccc-analyzer +++ b/utils/ccc-analyzer @@ -539,11 +539,20 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) { open(IN, $ARGV[$i+1]); while () { 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; } } -- 2.50.1