From: Daniel Dunbar Date: Wed, 20 Apr 2011 15:44:48 +0000 (+0000) Subject: Driver: Suppress some additional warnings with -Qunused-arguments. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32c8cb66af6192adb82fe39779b460b605fa14ed;p=clang Driver: Suppress some additional warnings with -Qunused-arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129853 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 39ace114e6..fc4d86c861 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -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 &&