Explorar o código

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

Romain Geissler %!s(int64=5) %!d(string=hai) anos
pai
achega
76f9074c1c

+ 3 - 3
src/google/protobuf/generated_message_reflection.h

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

+ 1 - 1
src/google/protobuf/message.h

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