Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation in http_integration.cc #8896

Merged
merged 2 commits into from
Nov 6, 2019

Conversation

ascheglov
Copy link
Contributor

Fixes -Werror=maybe-uninitialized

Risk Level: Low
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Fixes #8894

Fixes -Werror=maybe-uninitialized

Risk Level: Low
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Fixes envoyproxy#8894

Signed-off-by: Anatoly Scheglov <[email protected]>
@@ -422,6 +422,7 @@ TEST_P(DownstreamProtocolIntegrationTest, RetryHostPredicateFilter) {

// Note how we're expecting each upstream request to hit the same upstream.
auto upstream_idx = waitForNextUpstreamRequest({0, 1});
ASSERT_LT(upstream_idx, fake_upstreams_.size());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the only place where the return value was used.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead can you have it return an absl::optional? That is more future proof IMO.

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing. Small comment.

/wait

@@ -422,6 +422,7 @@ TEST_P(DownstreamProtocolIntegrationTest, RetryHostPredicateFilter) {

// Note how we're expecting each upstream request to hit the same upstream.
auto upstream_idx = waitForNextUpstreamRequest({0, 1});
ASSERT_LT(upstream_idx, fake_upstreams_.size());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead can you have it return an absl::optional? That is more future proof IMO.

@mattklein123 mattklein123 self-assigned this Nov 6, 2019
Signed-off-by: Anatoly Scheglov <[email protected]>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mattklein123 mattklein123 merged commit 619eb57 into envoyproxy:master Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation error in http_integration.cc
2 participants