Fix and enable -Wgnu-anonymous-struct

Bug: dawn:394
Change-Id: I7753b7daff2beaeb67fe6cbb54b002ddbe077f6f
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/20701
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Stephen White <senorblanco@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
Corentin Wallez 2020-04-30 16:01:08 +00:00 committed by Commit Bot service account
parent e642b1d959
commit 75f55bfaa3
2 changed files with 4 additions and 2 deletions

View File

@ -114,7 +114,6 @@ config("dawn_internal") {
# Flags for -pedantic warnings that haven't been fixed yet.
cflags += [
"-Wno-gnu-anonymous-struct",
"-Wno-gnu-zero-variadic-macro-arguments",
"-Wno-language-extension-token",
"-Wno-microsoft-enum-value",

View File

@ -22,7 +22,10 @@ config("glm_public_config") {
# GLM tries to suppress the warning for clang but gets confused by clang-cl
# and thinks it is MSVC.
if (is_win && is_clang) {
cflags = [ "-Wno-nested-anon-types" ]
cflags = [
"-Wno-gnu-anonymous-struct",
"-Wno-nested-anon-types",
]
}
}
source_set("glm") {