From 1da25e51036411a3b328b4574f3bc89b4c482d21 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Fri, 18 Sep 2020 14:38:01 +0000 Subject: [PATCH] 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 Reviewed-by: Stephen White Commit-Queue: Corentin Wallez --- src/common/BUILD.gn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/BUILD.gn b/src/common/BUILD.gn index 525147b1e2..c5158902e5 100644 --- a/src/common/BUILD.gn +++ b/src/common/BUILD.gn @@ -100,6 +100,7 @@ config("dawn_internal") { "-Wcstring-format-directive", "-Wc++11-narrowing", "-Wdeprecated-copy", + "-Wduplicate-enum", "-Wextra-semi-stmt", "-Wimplicit-fallthrough", "-Winconsistent-missing-destructor-override", @@ -107,6 +108,7 @@ config("dawn_internal") { "-Wmissing-field-initializers", "-Wnon-c-typedef-for-linkage", "-Wpessimizing-move", + "-Wrange-loop-analysis", "-Wreturn-std-move-in-c++11", "-Wshadow-field", "-Wstrict-prototypes",