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

This commit is contained in:
Ben Bader 2019-07-08 13:26:13 -07:00 committed by Adam Cozzette
parent 56e7bdf278
commit de57caa1fd
2 changed files with 2 additions and 0 deletions

View File

@ -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;
}

View File

@ -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); \
}