diff --git a/src/google/protobuf/arena.h b/src/google/protobuf/arena.h index 5eeb99ed02..d38aed7d1f 100644 --- a/src/google/protobuf/arena.h +++ b/src/google/protobuf/arena.h @@ -688,6 +688,7 @@ class PROTOBUF_EXPORT alignas(8) Arena final { !has_get_arena::value, int>::type = 0> PROTOBUF_ALWAYS_INLINE static Arena* GetArenaInternal(const T* value) { + (void) value; return nullptr; } diff --git a/src/google/protobuf/map_type_handler.h b/src/google/protobuf/map_type_handler.h index 4bfa64d70c..b633969615 100644 --- a/src/google/protobuf/map_type_handler.h +++ b/src/google/protobuf/map_type_handler.h @@ -524,6 +524,7 @@ inline const char* ReadSFIXED32(const char* ptr, int32* value) { template \ const char* MapTypeHandler::Read( \ const char* begin, ParseContext* ctx, MapEntryAccessorType* value) { \ + (void) ctx; \ return Read##FieldType(begin, value); \ }