[cfe-commits] r129853 - /cfe/trunk/lib/Driver/Driver.cpp

Daniel Dunbar daniel at zuster.org
Wed Apr 20 08:44:48 PDT 2011


Author: ddunbar
Date: Wed Apr 20 10:44:48 2011
New Revision: 129853

URL: http://llvm.org/viewvc/llvm-project?rev=129853&view=rev
Log:
Driver: Suppress some additional warnings with -Qunused-arguments.

Modified:
    cfe/trunk/lib/Driver/Driver.cpp

Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=129853&r1=129852&r2=129853&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Wed Apr 20 10:44:48 2011
@@ -858,6 +858,10 @@
       // 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 &&





More information about the cfe-commits mailing list