From da05f11cfe9308ba52f419a1346127037c6bd4c1 Mon Sep 17 00:00:00 2001 From: Marjolein Heyndrickx Date: Tue, 16 Aug 2022 09:44:18 +0200 Subject: [PATCH] avoid unused parameter warning --- src/google/protobuf/arena.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/google/protobuf/arena.h b/src/google/protobuf/arena.h index 1ee2ef8d757d..06e196fbb721 100644 --- a/src/google/protobuf/arena.h +++ b/src/google/protobuf/arena.h @@ -437,7 +437,8 @@ class PROTOBUF_EXPORT PROTOBUF_ALIGNAS(8) Arena final { } template - static Arena* GetOwningArena(Rank1, const U*) { + static Arena* GetOwningArena(Rank1, const U* p) { + (void) p; return nullptr; } @@ -467,7 +468,8 @@ class PROTOBUF_EXPORT PROTOBUF_ALIGNAS(8) Arena final { } template - static Arena* GetArenaForAllocation(Rank2, const U*) { + static Arena* GetArenaForAllocation(Rank2, const U* p) { + (void) p; return nullptr; }