Skip to content

Fix missing case of -Wrange-loop-analysis#13415

Merged
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
rgs1:fix-range-loop-analysis
Oct 7, 2020
Merged

Fix missing case of -Wrange-loop-analysis#13415
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
rgs1:fix-range-loop-analysis

Conversation

@rgs1
Copy link
Copy Markdown
Member

@rgs1 rgs1 commented Oct 6, 2020

Leftover from #13364.

Signed-off-by: Raul Gutierrez Segales rgs@pinterest.com

Leftover from envoyproxy#13364.

Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
@rgs1 rgs1 requested review from alyssawilk and snowp as code owners October 6, 2020 23:37
Copy link
Copy Markdown
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! Not sure how this passed upstream CI, I'm guessing different compiler version?

@mattklein123 mattklein123 merged commit 221965d into envoyproxy:master Oct 7, 2020
// instead of failing to route requests.
if (total_availability == 0) {
for (auto&& excluded_priority : excluded_priorities_) {
for (auto excluded_priority : excluded_priorities_) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this for loop working as intended?
I think it's not reseting the status of the excluded_priorities_ before/after the change?

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.

3 participants