build: fix warning in cares under GN build

This change can be removed after the upstream fix lands in Node:
https://github.com/c-ares/c-ares/pull/709

PR-URL: https://github.com/nodejs/node/pull/51687
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
This commit is contained in:
Cheng Zhao 2024-02-07 14:19:47 +09:00
parent 0992002d99
commit f22802ceb8

View File

@ -69,6 +69,8 @@ template("cares_gn_build") {
cflags_c = [
"-Wno-implicit-fallthrough",
"-Wno-unreachable-code",
# Remove after https://github.com/c-ares/c-ares/pull/709 lands in Node.
"-Wno-unused-result",
]
}
}