Skip to content

Commit

Permalink
Fix some -Wunused-parameter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
georgthegreat authored and acozzette committed Nov 17, 2020
1 parent c981d39 commit 0321358
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/google/protobuf/arenastring.h
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/generated_message_reflection.h
Expand Up @@ -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;
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/map_type_handler.h
Expand Up @@ -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> \
Expand Down

0 comments on commit 0321358

Please sign in to comment.