From 5aa1d19af4da5eabbcd325887fcaf845239e3c8e Mon Sep 17 00:00:00 2001 From: Andre Gaschler Date: Mon, 11 Sep 2023 19:50:16 +0200 Subject: [PATCH] [lang/c++] Make new LLVM version compile with unused variable (#34230) LLVM is making the unused variable warning a default: https://github.com/llvm/llvm-project/commit/92023b15099012a657da07ebf49dd7d94a260f84 This will make grpc compile after this LLVM update. (release notes: no) --- src/core/lib/channel/connected_channel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lib/channel/connected_channel.cc b/src/core/lib/channel/connected_channel.cc index 29f0924b665..7cf9423f4e7 100644 --- a/src/core/lib/channel/connected_channel.cc +++ b/src/core/lib/channel/connected_channel.cc @@ -548,7 +548,7 @@ ArenaPromise MakeClientCallPromise( } if (!done_recv_messages) { auto p = recv_messages(); - if (auto* r = p.value_if_ready()) { + if (p.ready()) { // NOTE: ignore errors here, they'll be collected in the // recv_trailing_metadata. done_recv_messages = true;