aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/alist_node.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-07-10 22:57:49 +0000
committerBill Wendling <isanbard@gmail.com>2008-07-10 22:57:49 +0000
commitc764d6fe0ef064717d83b0378a04556a31d877bf (patch)
tree587688ecb3060dd85b676d0a893f6c300774f91f /include/llvm/ADT/alist_node.h
parentc69812ea8eb7111ebccd78b205ad400b83e7c676 (diff)
downloadexternal_llvm-c764d6fe0ef064717d83b0378a04556a31d877bf.zip
external_llvm-c764d6fe0ef064717d83b0378a04556a31d877bf.tar.gz
external_llvm-c764d6fe0ef064717d83b0378a04556a31d877bf.tar.bz2
Pull r53428 from Gaz into mainline:
Remove warnings about unused/shadowed variables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53430 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/alist_node.h')
-rw-r--r--include/llvm/ADT/alist_node.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/ADT/alist_node.h b/include/llvm/ADT/alist_node.h
index 03c66f6..1b877c0 100644
--- a/include/llvm/ADT/alist_node.h
+++ b/include/llvm/ADT/alist_node.h
@@ -100,22 +100,22 @@ public:
}
void destroySentinel(NodeTy *N) {
- assert(N == &Sentinel);
+ assert(N == &Sentinel); N = N;
Sentinel.setPrev(0);
Sentinel.setNext(0);
}
- void addNodeToList(NodeTy *N) {}
- void removeNodeFromList(NodeTy *N) {}
- void transferNodesFromList(iplist<NodeTy, ilist_traits> &L2,
- ilist_iterator<NodeTy> first,
- ilist_iterator<NodeTy> last) {}
+ void addNodeToList(NodeTy *) {}
+ void removeNodeFromList(NodeTy *) {}
+ void transferNodesFromList(iplist<NodeTy, ilist_traits> &,
+ ilist_iterator<NodeTy> /*first*/,
+ ilist_iterator<NodeTy> /*last*/) {}
// Ideally we wouldn't implement this, but ilist's clear calls it,
// which is called from ilist's destructor. We won't ever call
// either of those with a non-empty list, but statically this
// method needs to exist.
- void deleteNode(NodeTy *N) { assert(0); }
+ void deleteNode(NodeTy *) { assert(0); }
private:
static NodeTy *createNode(const NodeTy &V); // do not implement