Skip to content

Commit 2b561ab

Browse files
codebytereruyadorno
authored andcommitted
build: fix GN build for sqlite and nghttp2
PR-URL: #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>
1 parent 67beb37 commit 2b561ab

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

deps/nghttp2/unofficial.gni

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ template("nghttp2_gn_build") {
3434
if (is_clang || !is_win) {
3535
cflags_c = [
3636
"-Wno-implicit-fallthrough",
37+
# Ref https://github.com/nghttp2/nghttp2/pull/2258
38+
# This can be removed when the above PR is ingested.
39+
"-Wno-extra-semi",
3740
]
3841
}
3942
}

deps/sqlite/unofficial.gni

+7-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@ template("sqlite_gn_build") {
1818
forward_variables_from(invoker, "*")
1919
public_configs = [ ":sqlite_config" ]
2020
sources = gypi_values.sqlite_sources
21+
cflags_c = [
22+
"-Wno-implicit-fallthrough",
23+
"-Wno-unreachable-code-return",
24+
"-Wno-unreachable-code-break",
25+
"-Wno-unreachable-code",
26+
]
2127
if (is_win) {
22-
cflags_c = [
28+
cflags_c += [
2329
"-Wno-sign-compare",
2430
"-Wno-unused-but-set-variable",
2531
"-Wno-unused-function",

0 commit comments

Comments
 (0)