Fix unused-parameter clang warnings in arena.h and map_type_handler.h

pull/6363/head
Ben Bader 5 years ago committed by Adam Cozzette
parent 56e7bdf278
commit de57caa1fd
  1. 1
      src/google/protobuf/arena.h
  2. 1
      src/google/protobuf/map_type_handler.h

@ -688,6 +688,7 @@ class PROTOBUF_EXPORT alignas(8) Arena final {
!has_get_arena<T>::value,
int>::type = 0>
PROTOBUF_ALWAYS_INLINE static Arena* GetArenaInternal(const T* value) {
(void) value;
return nullptr;
}

@ -524,6 +524,7 @@ inline const char* ReadSFIXED32(const char* ptr, int32* value) {
template <typename Type> \
const char* MapTypeHandler<WireFormatLite::TYPE_##FieldType, Type>::Read( \
const char* begin, ParseContext* ctx, MapEntryAccessorType* value) { \
(void) ctx; \
return Read##FieldType(begin, value); \
}

Loading…
Cancel
Save