0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 23:43:09 +01:00

build: fix build warning of c-ares under GN build

PR-URL: https://github.com/nodejs/node/pull/53750
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
Cheng 2024-07-09 17:42:40 +09:00 committed by GitHub
parent 66a635cece
commit 2b068ffc4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,11 +65,17 @@ template("cares_gn_build") {
sources += gypi_values.cares_sources_mac
}
if (is_clang || !is_win) {
cflags_c = [
"-Wno-implicit-fallthrough",
"-Wno-unreachable-code",
]
if (is_clang) {
if (is_win) {
cflags_c = [
"-Wno-macro-redefined",
]
} else {
cflags_c = [
"-Wno-implicit-fallthrough",
"-Wno-unreachable-code",
]
}
}
}
}