mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-18 04:23:36 +00:00
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:
parent
e642b1d959
commit
75f55bfaa3
@ -114,7 +114,6 @@ config("dawn_internal") {
|
|||||||
|
|
||||||
# Flags for -pedantic warnings that haven't been fixed yet.
|
# Flags for -pedantic warnings that haven't been fixed yet.
|
||||||
cflags += [
|
cflags += [
|
||||||
"-Wno-gnu-anonymous-struct",
|
|
||||||
"-Wno-gnu-zero-variadic-macro-arguments",
|
"-Wno-gnu-zero-variadic-macro-arguments",
|
||||||
"-Wno-language-extension-token",
|
"-Wno-language-extension-token",
|
||||||
"-Wno-microsoft-enum-value",
|
"-Wno-microsoft-enum-value",
|
||||||
|
5
third_party/gn/glm/BUILD.gn
vendored
5
third_party/gn/glm/BUILD.gn
vendored
@ -22,7 +22,10 @@ config("glm_public_config") {
|
|||||||
# GLM tries to suppress the warning for clang but gets confused by clang-cl
|
# GLM tries to suppress the warning for clang but gets confused by clang-cl
|
||||||
# and thinks it is MSVC.
|
# and thinks it is MSVC.
|
||||||
if (is_win && is_clang) {
|
if (is_win && is_clang) {
|
||||||
cflags = [ "-Wno-nested-anon-types" ]
|
cflags = [
|
||||||
|
"-Wno-gnu-anonymous-struct",
|
||||||
|
"-Wno-nested-anon-types",
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
source_set("glm") {
|
source_set("glm") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user