Fix more compilation warnings.

Add -Wconditional-uninitialized -Wc++11-narrowing.

Bug: chromium:1064305
Change-Id: I1c1503cafaa2e58e990fc18998200af1f2c00d06
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19341
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Zhenyao Mo
2020-04-13 12:34:20 +00:00
committed by Commit Bot service account
parent 5b7292c8f8
commit 4fbd14badb
6 changed files with 24 additions and 22 deletions

View File

@@ -97,6 +97,8 @@ config("dawn_internal") {
"-Wcstring-format-directive",
"-Wtautological-unsigned-zero-compare",
"-Wreturn-std-move-in-c++11",
"-Wconditional-uninitialized",
"-Wc++11-narrowing",
# Turn on the following flag after removing the empty statement in
# third_party/glm/glm/simd/common.h:106