Commit 0b7e9788 authored by Jisi Liu's avatar Jisi Liu Committed by GitHub

Merge pull request #3535 from drivehappy/clang_warn_cleanup

Fixing unused parameter warnings under Clang.
parents ba4e5472 1183f486
...@@ -181,7 +181,7 @@ class Map { ...@@ -181,7 +181,7 @@ class Map {
MapAllocator(const MapAllocator<X>& allocator) MapAllocator(const MapAllocator<X>& allocator)
: arena_(allocator.arena()) {} : arena_(allocator.arena()) {}
pointer allocate(size_type n, const void* hint = 0) { pointer allocate(size_type n, const void* /* hint */ = 0) {
// If arena is not given, malloc needs to be called which doesn't // If arena is not given, malloc needs to be called which doesn't
// construct element object. // construct element object.
if (arena_ == NULL) { if (arena_ == NULL) {
...@@ -197,6 +197,7 @@ class Map { ...@@ -197,6 +197,7 @@ class Map {
#if defined(__GXX_DELETE_WITH_SIZE__) || defined(__cpp_sized_deallocation) #if defined(__GXX_DELETE_WITH_SIZE__) || defined(__cpp_sized_deallocation)
::operator delete(p, n * sizeof(value_type)); ::operator delete(p, n * sizeof(value_type));
#else #else
(void)n;
::operator delete(p); ::operator delete(p);
#endif #endif
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment