From f22802ceb89a1f6231eb79a0fd7f229210756aaf Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 7 Feb 2024 14:19:47 +0900 Subject: [PATCH] build: fix warning in cares under GN build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Marco Ippolito Reviewed-By: Juan José Arboleda --- deps/cares/unofficial.gni | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deps/cares/unofficial.gni b/deps/cares/unofficial.gni index a925eb14f33361..df6b2d0bcb11aa 100644 --- a/deps/cares/unofficial.gni +++ b/deps/cares/unofficial.gni @@ -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", ] } }