Add -Wduplicate-enum and -Wrange-for-analysis

These warnings are used in Skia.

Bug: None
Change-Id: I1948f448a89b0c213ce1aacd6bb8532f90d399be
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/28160
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Stephen White <senorblanco@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2020-09-18 14:38:01 +00:00 committed by Commit Bot service account
parent c01b26490a
commit 1da25e5103
1 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,7 @@ config("dawn_internal") {
"-Wcstring-format-directive", "-Wcstring-format-directive",
"-Wc++11-narrowing", "-Wc++11-narrowing",
"-Wdeprecated-copy", "-Wdeprecated-copy",
"-Wduplicate-enum",
"-Wextra-semi-stmt", "-Wextra-semi-stmt",
"-Wimplicit-fallthrough", "-Wimplicit-fallthrough",
"-Winconsistent-missing-destructor-override", "-Winconsistent-missing-destructor-override",
@ -107,6 +108,7 @@ config("dawn_internal") {
"-Wmissing-field-initializers", "-Wmissing-field-initializers",
"-Wnon-c-typedef-for-linkage", "-Wnon-c-typedef-for-linkage",
"-Wpessimizing-move", "-Wpessimizing-move",
"-Wrange-loop-analysis",
"-Wreturn-std-move-in-c++11", "-Wreturn-std-move-in-c++11",
"-Wshadow-field", "-Wshadow-field",
"-Wstrict-prototypes", "-Wstrict-prototypes",