Fix unused variable warnings in extension_set.h (#9073)

pull/8068/head
mgabris 3 years ago committed by GitHub
parent b7928164dc
commit 1b22582bc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      src/google/protobuf/extension_set.h

@ -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;
}
@ -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;
}

Loading…
Cancel
Save