From a45c801048cb918709c6fe30be1226eb9ee59966 Mon Sep 17 00:00:00 2001 From: Cheng Date: Tue, 2 Jul 2024 15:21:56 +0900 Subject: [PATCH] build: fix build error in sqlite under GN build PR-URL: https://github.com/nodejs/node/pull/53686 Reviewed-By: Yagiz Nizipli Reviewed-By: James M Snell --- deps/sqlite/unofficial.gni | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deps/sqlite/unofficial.gni b/deps/sqlite/unofficial.gni index 27615a733ea4a1..ebb3ffcd6d42b4 100644 --- a/deps/sqlite/unofficial.gni +++ b/deps/sqlite/unofficial.gni @@ -18,5 +18,13 @@ template("sqlite_gn_build") { forward_variables_from(invoker, "*") public_configs = [ ":sqlite_config" ] sources = gypi_values.sqlite_sources + if (is_win) { + cflags_c = [ + "-Wno-sign-compare", + "-Wno-unused-but-set-variable", + "-Wno-unused-function", + "-Wno-unused-variable", + ] + } } }