summaryrefslogtreecommitdiffstats
path: root/runtime/base/allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/base/allocator.h')
-rw-r--r--runtime/base/allocator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/base/allocator.h b/runtime/base/allocator.h
index 95dd407924..3ca9ebbd5c 100644
--- a/runtime/base/allocator.h
+++ b/runtime/base/allocator.h
@@ -114,6 +114,7 @@ class TrackingAllocatorImpl {
// Used internally by STL data structures.
template <class U>
TrackingAllocatorImpl(const TrackingAllocatorImpl<U, kTag>& alloc) throw() {
+ UNUSED(alloc);
}
// Used internally by STL data structures.
@@ -129,6 +130,7 @@ class TrackingAllocatorImpl {
};
pointer allocate(size_type n, const_pointer hint = 0) {
+ UNUSED(hint);
const size_t size = n * sizeof(T);
TrackedAllocators::RegisterAllocation(GetTag(), size);
return reinterpret_cast<pointer>(malloc(size));