Skip to content

Commit

Permalink
Handle the unlikely case of reaching the end of an exhaustive enum in
Browse files Browse the repository at this point in the history
a test to appease GCC.

`error: control reaches end of non-void function [-Werror=return-type]`

PiperOrigin-RevId: 715506532
  • Loading branch information
asedeno authored and copybara-github committed Jan 14, 2025
1 parent 0bfee54 commit 1f4ecee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions quiche/http2/adapter/adapter_impl_comparison_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class ComparisonTest : public ::quiche::test::QuicheTest {
options.perspective = p;
return OgHttp2Adapter::Create(visitor, options);
}
return nullptr; // Unreachable unless enum is corrupted.
}
};

Expand Down

0 comments on commit 1f4ecee

Please sign in to comment.