Index: build/toolchain/win/midl.gni |
diff --git a/build/toolchain/win/midl.gni b/build/toolchain/win/midl.gni |
index 197f3668e309a1ea3bbaed49dc7200e18a1bf9a9..3e7fbecca5392a51730a24617d55bd1fc52dad07 100644 |
--- a/build/toolchain/win/midl.gni |
+++ b/build/toolchain/win/midl.gni |
@@ -101,5 +101,13 @@ template("midl") { |
public_deps = [ |
":$action_name", |
] |
+ |
+ config("midl_warnings") { |
+ if (is_clang) { |
+ # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_" |
+ cflags = [ "-Wno-extra-tokens" ] |
+ } |
+ } |
+ configs += [ ":midl_warnings" ] |
} |
} |