aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/map.h
diff options
context:
space:
mode:
authorGravatar drivehappy <drivehappy@gmail.com>2017-08-21 10:10:34 -0700
committerGravatar drivehappy <drivehappy@gmail.com>2017-08-21 10:10:34 -0700
commit1183f4864bfedfbd21e061c236c9ff47961832ae (patch)
tree8c1ed69f5ae2c665016c3b0bee33f3cd0ced283a /src/google/protobuf/map.h
parent1825d6d8f0aedcd7966c5c137a71e46ae650b3da (diff)
Fixing unused parameter warnings under Clang.
Diffstat (limited to 'src/google/protobuf/map.h')
-rw-r--r--src/google/protobuf/map.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/google/protobuf/map.h b/src/google/protobuf/map.h
index 6a88600c..ec487fcd 100644
--- a/src/google/protobuf/map.h
+++ b/src/google/protobuf/map.h
@@ -181,7 +181,7 @@ class Map {
MapAllocator(const MapAllocator<X>& allocator)
: 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
// construct element object.
if (arena_ == NULL) {
@@ -197,6 +197,7 @@ class Map {
#if defined(__GXX_DELETE_WITH_SIZE__) || defined(__cpp_sized_deallocation)
::operator delete(p, n * sizeof(value_type));
#else
+ (void)n;
::operator delete(p);
#endif
}