From a121e7fff03888a46e8e17efbe531fc98b293365 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Thu, 30 Apr 2020 16:10:48 +0000 Subject: [PATCH] Enable -Wno-language-extension-token except on Windows It is required on Windows to be able to use __uuidof(). Bug: dawn:394 Change-Id: I02c1a4d36688c5985d5eb7f65737f6b821655ddc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/20703 Commit-Queue: Corentin Wallez Reviewed-by: Stephen White Reviewed-by: Austin Eng --- src/common/BUILD.gn | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/BUILD.gn b/src/common/BUILD.gn index 67370d115f..da0c371c4b 100644 --- a/src/common/BUILD.gn +++ b/src/common/BUILD.gn @@ -112,10 +112,14 @@ config("dawn_internal") { cflags += [ "-pedantic" ] } + # On Windows allow the use of __uuidof() + if (is_win) { + cflags += [ "-Wno-language-extension-token" ] + } + # Flags for -pedantic warnings that haven't been fixed yet. cflags += [ "-Wno-gnu-zero-variadic-macro-arguments", - "-Wno-language-extension-token", "-Wno-microsoft-enum-value", ] }