Fix some -Wunused-parameter warnings which appeared in release 3.13.0.

pull/7874/head
Romain Geissler 4 years ago committed by Adam Cozzette
parent f5bdd7cd56
commit 76f9074c1c
  1. 6
      src/google/protobuf/generated_message_reflection.h
  2. 2
      src/google/protobuf/message.h

@ -214,15 +214,15 @@ struct ReflectionSchema {
// Returns true if the field's accessor is called by any external code (aka, // Returns true if the field's accessor is called by any external code (aka,
// non proto library code). // non proto library code).
bool IsFieldUsed(const FieldDescriptor* field) const { bool IsFieldUsed(const FieldDescriptor* /* field */) const {
return true; return true;
} }
bool IsFieldStripped(const FieldDescriptor* field) const { bool IsFieldStripped(const FieldDescriptor* /* field */) const {
return false; return false;
} }
bool IsMessageStripped(const Descriptor* descriptor) const { bool IsMessageStripped(const Descriptor* /* descriptor */) const {
return false; return false;
} }

@ -1045,7 +1045,7 @@ class PROTOBUF_EXPORT Reflection final {
const OneofDescriptor* oneof_descriptor) const; const OneofDescriptor* oneof_descriptor) const;
inline uint32* MutableOneofCase( inline uint32* MutableOneofCase(
Message* message, const OneofDescriptor* oneof_descriptor) const; Message* message, const OneofDescriptor* oneof_descriptor) const;
inline bool HasExtensionSet(const Message& message) const { inline bool HasExtensionSet(const Message& /* message */) const {
return schema_.HasExtensionSet(); return schema_.HasExtensionSet();
} }
const internal::ExtensionSet& GetExtensionSet(const Message& message) const; const internal::ExtensionSet& GetExtensionSet(const Message& message) const;

Loading…
Cancel
Save