Skip to content

Commit

Permalink
Fix unused variable warnings in extension_set.h (#9073)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgabris authored Oct 11, 2021
1 parent b792816 commit 1b22582
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/google/protobuf/extension_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -1359,8 +1359,8 @@ class MessageTypeTraits {
ConstType default_value) {
return static_cast<const Type&>(set.GetMessage(number, default_value));
}
static inline std::nullptr_t GetPtr(int number, const ExtensionSet& set,
ConstType default_value) {
static inline std::nullptr_t GetPtr(int /* number */, const ExtensionSet& /* set */,
ConstType /* default_value */) {
// Cannot be implemented because of forward declared messages?
return nullptr;
}
Expand Down Expand Up @@ -1412,13 +1412,13 @@ class RepeatedMessageTypeTraits {
static inline ConstType Get(int number, const ExtensionSet& set, int index) {
return static_cast<const Type&>(set.GetRepeatedMessage(number, index));
}
static inline std::nullptr_t GetPtr(int number, const ExtensionSet& set,
int index) {
static inline std::nullptr_t GetPtr(int /* number */, const ExtensionSet& /* set */,
int /* index */) {
// Cannot be implemented because of forward declared messages?
return nullptr;
}
static inline std::nullptr_t GetRepeatedPtr(int number,
const ExtensionSet& set) {
static inline std::nullptr_t GetRepeatedPtr(int /* number */,
const ExtensionSet& /* set */) {
// Cannot be implemented because of forward declared messages?
return nullptr;
}
Expand Down

0 comments on commit 1b22582

Please sign in to comment.