diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-04-20 15:44:48 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-04-20 15:44:48 +0000 |
commit | 32c8cb66af6192adb82fe39779b460b605fa14ed (patch) | |
tree | a7e60ae74d15d273be7d5545676f4473cd524022 /lib/Driver/Driver.cpp | |
parent | 750ea6192f7ccd6960bfe87112d934aab7ac579f (diff) |
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
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 && |