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
pull/26758/head
pkasting 4 years ago committed by GitHub
parent dbec97eb0a
commit 169bf0825c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      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;

Loading…
Cancel
Save