Skip to content

Commit

Permalink
test: Fix warning in protobuf util
Browse files Browse the repository at this point in the history
  • Loading branch information
Tradias committed Dec 9, 2024
1 parent d9e41a1 commit 75c673e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/src/test_unifex_20.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ TEST_CASE("unifex asio-grpc fulfills std::execution concepts")
CHECK(unifex::scheduler<agrpc::GrpcExecutor>);
using GrpcSender = decltype(std::declval<agrpc::Alarm&>().wait(
std::declval<std::chrono::system_clock::time_point>(), agrpc::use_sender));
CHECK(unifex::typed_sender<GrpcSender>);
CHECK(unifex::sender<GrpcSender>);
CHECK(unifex::is_nothrow_connectable_v<GrpcSender, test::FunctionAsReceiver<test::InvocableArchetype>>);

using ScheduleSender = decltype(unifex::schedule(std::declval<agrpc::GrpcExecutor>()));
CHECK(unifex::typed_sender<ScheduleSender>);
CHECK(unifex::sender<ScheduleSender>);
CHECK(unifex::is_nothrow_connectable_v<ScheduleSender, test::FunctionAsReceiver<test::InvocableArchetype>>);
}

Expand Down
3 changes: 2 additions & 1 deletion test/utils/utils/protobuf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 75c673e

Please sign in to comment.