c++ remove unused parameters

pull/6780/head
Christian Maurer 5 years ago committed by Adam Cozzette
parent 6f0f382d56
commit 912d8195da
  1. 2
      src/google/protobuf/extension_set.h
  2. 4
      src/google/protobuf/message_lite.h
  3. 2
      src/google/protobuf/parse_context.h

@ -760,7 +760,7 @@ class PROTOBUF_EXPORT ExtensionSet {
bool FindExtension(int wire_type, uint32 field,
const MessageLite* containing_type,
const internal::ParseContext* ctx,
const internal::ParseContext* /*ctx*/,
ExtensionInfo* extension, bool* was_packed_on_wire) {
GeneratedExtensionFinder finder(containing_type);
return FindExtensionInfoFromFieldNumber(wire_type, field, &finder,

@ -434,8 +434,8 @@ class PROTOBUF_EXPORT MessageLite {
// method.)
virtual int GetCachedSize() const = 0;
virtual const char* _InternalParse(const char* ptr,
internal::ParseContext* ctx) {
virtual const char* _InternalParse(const char* /*ptr*/,
internal::ParseContext* /*ctx*/) {
return nullptr;
}

@ -491,7 +491,7 @@ PROTOBUF_EXPORT
std::pair<const char*, uint32> ReadTagFallback(const char* p, uint32 res);
// Same as ParseVarint but only accept 5 bytes at most.
inline const char* ReadTag(const char* p, uint32* out, uint32 max_tag = 0) {
inline const char* ReadTag(const char* p, uint32* out, uint32 /*max_tag*/ = 0) {
uint32 res = static_cast<uint8>(p[0]);
if (res < 128) {
*out = res;

Loading…
Cancel
Save