Fix some -Wunused-parameter warnings

pull/8066/head
Yuriy Chernyshov 4 years ago committed by Adam Cozzette
parent c981d39d1e
commit 0321358204
  1. 2
      src/google/protobuf/arenastring.h
  2. 2
      src/google/protobuf/generated_message_reflection.h
  3. 2
      src/google/protobuf/map_type_handler.h

@ -329,6 +329,8 @@ inline void ArenaStringPtr::Swap(ArenaStringPtr* other,
this_ptr->swap(*other_ptr);
}
#else
(void) default_value;
(void) arena;
std::swap(tagged_ptr_, other->tagged_ptr_);
#endif
}

@ -236,7 +236,7 @@ struct ReflectionSchema {
// We tag offset values to provide additional data about fields (such as
// "unused").
static uint32 OffsetValue(uint32 v, FieldDescriptor::Type type) {
static uint32 OffsetValue(uint32 v, FieldDescriptor::Type /* type */) {
return v & 0x7FFFFFFFu;
}
};

@ -569,7 +569,7 @@ inline bool MapTypeHandler<WireFormatLite::TYPE_MESSAGE, Type>::IsInitialized(
} \
template <typename Type> \
inline void MapTypeHandler<WireFormatLite::TYPE_##FieldType, Type>::Clear( \
TypeOnMemory* value, Arena* arena) { \
TypeOnMemory* value, Arena* /* arena */) { \
value->ClearToEmpty(); \
} \
template <typename Type> \

Loading…
Cancel
Save