Skip to content

Commit

Permalink
c++ remove unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisse74 authored and acozzette committed Oct 18, 2019
1 parent 6f0f382 commit 912d819
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/google/protobuf/extension_set.h
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/google/protobuf/message_lite.h
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/parse_context.h
Expand Up @@ -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;
Expand Down

0 comments on commit 912d819

Please sign in to comment.