From 169bf0825c1c08610b56e45f8e01ddcb22a4d0ca Mon Sep 17 00:00:00 2001 From: pkasting Date: Thu, 22 Jul 2021 11:14:07 -0700 Subject: [PATCH] Fix an instance of -Wunreachable-code-aggressive. (#26720) abort() never returns, so any code after it is unreachable. This triggers a warning. Bug: chromium:1066980 release notes: no --- src/core/ext/transport/chttp2/transport/chttp2_transport.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc index aa948c99214..f7af9a9f759 100644 --- a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc @@ -1286,7 +1286,6 @@ static void continue_fetching_send_locked(grpc_chttp2_transport* t, if (s->fetching_send_message == nullptr) { // Stream was cancelled before message fetch completed abort(); /* TODO(ctiller): what cleanup here? */ - return; /* early out */ } if (s->fetched_send_message_length == s->fetching_send_message->length()) { int64_t notify_offset = s->next_message_end_offset;