From c01e971c612041088e94a0977f1f7d6fc858db92 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 This change can be removed after the upstream fix lands in Node: https://github.com/c-ares/c-ares/pull/709 --- 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", ] } }