[build] Fix MSVC build.

Change-Id: I0336a501e81392ce8e416958242e61d6b3226a9f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/317560
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
Ryan Macnak 2023-08-01 22:09:08 +00:00 committed by Commit Queue
parent 08f2bc1e60
commit 1f87e88a97

View file

@ -8,13 +8,13 @@ config("binaryen_warnings") {
if (is_clang) {
cflags = [ "-Wno-unused-but-set-parameter" ]
} else if (!is_win) {
cflags = [ "-Wno-unused-variable" ]
}
cflags = [
"-Wno-unused-variable",
if (!is_clang) {
# Bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86465#c16 triggered by
# https://github.com/WebAssembly/binaryen/blob/cdb7aeab40b4c522de20b242019f7e88641445d5/src/wasm/wasm-type.cpp#L530.
cflags += [ "-Wno-maybe-uninitialized" ]
# Bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86465#c16 triggered by
# https://github.com/WebAssembly/binaryen/blob/cdb7aeab40b4c522de20b242019f7e88641445d5/src/wasm/wasm-type.cpp#L530.
"-Wno-maybe-uninitialized",
]
}
}