From: Eric Christopher Date: Thu, 22 Jul 2010 21:51:30 +0000 (+0000) Subject: Warnings patrol. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ed2b84087f4ff1df77b73afaf2003c97816fe7ec;p=oota-llvm.git Warnings patrol. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109174 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Module.h b/include/llvm/Module.h index 45247ec31c5..b7880ca2cb7 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -71,8 +71,8 @@ template<> struct ilist_traits NamedMDNode *provideInitialHead() const { return createSentinel(); } NamedMDNode *ensureHead(NamedMDNode*) const { return createSentinel(); } static void noteHead(NamedMDNode*, NamedMDNode*) {} - void addNodeToList(NamedMDNode *N) {} - void removeNodeFromList(NamedMDNode *N) {} + void addNodeToList(NamedMDNode *) {} + void removeNodeFromList(NamedMDNode *) {} private: mutable ilist_node Sentinel; }; diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index 29e4f7c0801..2857efb53b9 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -250,10 +250,10 @@ public: /// code is not supported. It fills the MCContext Ctx pointer which can be /// used to build custom MCStreamer. /// - virtual bool addPassesToEmitMC(PassManagerBase &PM, - MCContext *&Ctx, - CodeGenOpt::Level OptLevel, - bool DisableVerify = true) { + virtual bool addPassesToEmitMC(PassManagerBase &, + MCContext *&, + CodeGenOpt::Level, + bool = true) { return true; } };