From 75c673e32df16657ea8ebf6704fc98406458ab44 Mon Sep 17 00:00:00 2001 From: Dennis Hezel Date: Mon, 9 Dec 2024 12:17:05 +0100 Subject: [PATCH] test: Fix warning in protobuf util --- test/src/test_unifex_20.cpp | 4 ++-- test/utils/utils/protobuf.hpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/src/test_unifex_20.cpp b/test/src/test_unifex_20.cpp index a5708a6d..c16d513f 100644 --- a/test/src/test_unifex_20.cpp +++ b/test/src/test_unifex_20.cpp @@ -29,11 +29,11 @@ TEST_CASE("unifex asio-grpc fulfills std::execution concepts") CHECK(unifex::scheduler); using GrpcSender = decltype(std::declval().wait( std::declval(), agrpc::use_sender)); - CHECK(unifex::typed_sender); + CHECK(unifex::sender); CHECK(unifex::is_nothrow_connectable_v>); using ScheduleSender = decltype(unifex::schedule(std::declval())); - CHECK(unifex::typed_sender); + CHECK(unifex::sender); CHECK(unifex::is_nothrow_connectable_v>); } diff --git a/test/utils/utils/protobuf.hpp b/test/utils/utils/protobuf.hpp index 6b1023c5..7871d142 100644 --- a/test/utils/utils/protobuf.hpp +++ b/test/utils/utils/protobuf.hpp @@ -43,7 +43,8 @@ grpc::ByteBuffer message_to_grpc_buffer(const Message& message) return buffer; } -inline bool has_arena(const google::protobuf::MessageLite& message, const google::protobuf::Arena& arena) +inline bool has_arena([[maybe_unused]] const google::protobuf::MessageLite& message, + [[maybe_unused]] const google::protobuf::Arena& arena) { #if GOOGLE_PROTOBUF_VERSION < 4000000 return true;