Fix and enable -Wnested-anon-types

Bug: dawn:394
Change-Id: I51b533c07f21bcacd22a058cf4a080b9b2b853f7
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/20700
Reviewed-by: Stephen White <senorblanco@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez
2020-04-30 15:58:28 +00:00
committed by Commit Bot service account
parent 754c161fd3
commit e642b1d959
3 changed files with 17 additions and 8 deletions

View File

@@ -18,6 +18,12 @@ assert(dawn_standalone)
config("glm_public_config") {
include_dirs = [ "${dawn_glm_dir}" ]
# 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" ]
}
}
source_set("glm") {
configs -= [ "//build/config/compiler:chromium_code" ]