]> granicus.if.org Git - clang/commitdiff
Driver: Make sure to claim -### before emitting "unused argument"
authorDaniel Dunbar <daniel@zuster.org>
Sun, 29 Mar 2009 22:24:54 +0000 (22:24 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 29 Mar 2009 22:24:54 +0000 (22:24 +0000)
warnings.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68018 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index bb89207466286b78471f1537f23e1f31b4fa1c3f..a5d63e60681066a644a65fe1e27a0a63fece7259 100644 (file)
@@ -712,6 +712,9 @@ void Driver::BuildJobs(Compilation &C) const {
   if (Diags.getNumErrors())
     return;
 
+  // Claim -### here.
+  (void) C.getArgs().hasArg(options::OPT__HASH_HASH_HASH);
+  
   for (ArgList::const_iterator it = C.getArgs().begin(), ie = C.getArgs().end();
        it != ie; ++it) {
     Arg *A = *it;