From 912d8195dad66d158fed2c9dc38a039448f3f43e Mon Sep 17 00:00:00 2001 From: Christian Maurer Date: Tue, 15 Oct 2019 12:58:58 +0200 Subject: [PATCH] c++ remove unused parameters --- src/google/protobuf/extension_set.h | 2 +- src/google/protobuf/message_lite.h | 4 ++-- src/google/protobuf/parse_context.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/google/protobuf/extension_set.h b/src/google/protobuf/extension_set.h index baf54c3182..b704147183 100644 --- a/src/google/protobuf/extension_set.h +++ b/src/google/protobuf/extension_set.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, diff --git a/src/google/protobuf/message_lite.h b/src/google/protobuf/message_lite.h index 1ef5d23143..0b718a0a2d 100644 --- a/src/google/protobuf/message_lite.h +++ b/src/google/protobuf/message_lite.h @@ -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; } diff --git a/src/google/protobuf/parse_context.h b/src/google/protobuf/parse_context.h index f15cb35f88..fa2a1cdffa 100644 --- a/src/google/protobuf/parse_context.h +++ b/src/google/protobuf/parse_context.h @@ -491,7 +491,7 @@ PROTOBUF_EXPORT std::pair 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(p[0]); if (res < 128) { *out = res;