Skip to content

Commit 76f9074

Browse files
Romain-Geissler-1AAdam Cozzette
authored andcommitted
Fix some -Wunused-parameter warnings which appeared in release 3.13.0.
1 parent f5bdd7c commit 76f9074

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/google/protobuf/generated_message_reflection.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,15 @@ struct ReflectionSchema {
214214

215215
// Returns true if the field's accessor is called by any external code (aka,
216216
// non proto library code).
217-
bool IsFieldUsed(const FieldDescriptor* field) const {
217+
bool IsFieldUsed(const FieldDescriptor* /* field */) const {
218218
return true;
219219
}
220220

221-
bool IsFieldStripped(const FieldDescriptor* field) const {
221+
bool IsFieldStripped(const FieldDescriptor* /* field */) const {
222222
return false;
223223
}
224224

225-
bool IsMessageStripped(const Descriptor* descriptor) const {
225+
bool IsMessageStripped(const Descriptor* /* descriptor */) const {
226226
return false;
227227
}
228228

src/google/protobuf/message.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ class PROTOBUF_EXPORT Reflection final {
10451045
const OneofDescriptor* oneof_descriptor) const;
10461046
inline uint32* MutableOneofCase(
10471047
Message* message, const OneofDescriptor* oneof_descriptor) const;
1048-
inline bool HasExtensionSet(const Message& message) const {
1048+
inline bool HasExtensionSet(const Message& /* message */) const {
10491049
return schema_.HasExtensionSet();
10501050
}
10511051
const internal::ExtensionSet& GetExtensionSet(const Message& message) const;

0 commit comments

Comments
 (0)