Skip to content

test: avoid unnecessary copy triggering warning on Google import.#10428

Merged
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
htuch:range-loop
Mar 18, 2020
Merged

test: avoid unnecessary copy triggering warning on Google import.#10428
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
htuch:range-loop

Conversation

@htuch
Copy link
Member

@htuch htuch commented Mar 18, 2020

This occurs becaue of a new range loop "unnnecesary copy" warning in -Wall for latest Clang
(-Wrange-loop-construct). This is not available in Clang 9.

The related -Wrange-loop-analysis seems to have been disabled in Absl due to its lack of
precision for small value types, see https://abseil.io/docs/cpp/platforms/compilerflags.

Risk level: Low
Testing: Build

Signed-off-by: Harvey Tuch htuch@google.com

This occurs becaue of a new range loop "unnnecesary copy" warning in -Wall for latest Clang
(-Wrange-loop-construct). This is not available in Clang 9.

The related -Wrange-loop-analysis seems to have been disabled in Absl due to its lack of
precision for small value types, see https://abseil.io/docs/cpp/platforms/compilerflags.

Risk level: Low
Testing: Build

Signed-off-by: Harvey Tuch <htuch@google.com>
@mattklein123 mattklein123 merged commit 3a5e0c5 into envoyproxy:master Mar 18, 2020
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.

2 participants