build: fix GN build for sqlite and nghttp2

PR-URL: https://github.com/nodejs/node/pull/55529
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Cheng Zhao <zcbenz@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Shelley Vohr 2024-10-27 10:21:39 +01:00 committed by GitHub
parent 5d4fee8975
commit c35cbcde4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View file

@ -34,6 +34,9 @@ template("nghttp2_gn_build") {
if (is_clang || !is_win) {
cflags_c = [
"-Wno-implicit-fallthrough",
# Ref https://github.com/nghttp2/nghttp2/pull/2258
# This can be removed when the above PR is ingested.
"-Wno-extra-semi",
]
}
}

View file

@ -18,8 +18,14 @@ template("sqlite_gn_build") {
forward_variables_from(invoker, "*")
public_configs = [ ":sqlite_config" ]
sources = gypi_values.sqlite_sources
cflags_c = [
"-Wno-implicit-fallthrough",
"-Wno-unreachable-code-return",
"-Wno-unreachable-code-break",
"-Wno-unreachable-code",
]
if (is_win) {
cflags_c = [
cflags_c += [
"-Wno-sign-compare",
"-Wno-unused-but-set-variable",
"-Wno-unused-function",