]> granicus.if.org Git - clang/commitdiff
Driver: Suppress some additional warnings with -Qunused-arguments.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 20 Apr 2011 15:44:48 +0000 (15:44 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 20 Apr 2011 15:44:48 +0000 (15:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129853 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index 39ace114e6359562b4b8fd7dd28c7c293fac5193..fc4d86c861c89a2450fb8363906cdfde6d5b0959 100644 (file)
@@ -858,6 +858,10 @@ void Driver::BuildActions(const ToolChain &TC, const DerivedArgList &Args,
       // Claim here to avoid the more general unused warning.
       InputArg->claim();
 
+      // Suppress all unused style warnings with -Qunused-arguments
+      if (Args.hasArg(options::OPT_Qunused_arguments))
+        continue;
+
       // Special case '-E' warning on a previously preprocessed file to make
       // more sense.
       if (InitialPhase == phases::Compile && FinalPhase == phases::Preprocess &&