build: fix build error in sqlite under GN build

PR-URL: https://github.com/nodejs/node/pull/53686
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Cheng 2024-07-02 15:21:56 +09:00
parent 7e80584829
commit 11f4efc73a

View File

@ -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",
]
}
}
}