Skip to content

Commit

Permalink
build: fix build warning of c-ares under GN build
Browse files Browse the repository at this point in the history
PR-URL: #53750
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
Reviewed-By: Marco Ippolito <[email protected]>
  • Loading branch information
zcbenz authored and marco-ippolito committed Aug 19, 2024
1 parent 0ad4b7c commit 04798fb
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions deps/cares/unofficial.gni
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,17 @@ template("cares_gn_build") {
sources += gypi_values.cares_sources_mac
}

if (is_clang || !is_win) {
cflags_c = [
"-Wno-implicit-fallthrough",
"-Wno-unreachable-code",
]
if (is_clang) {
if (is_win) {
cflags_c = [
"-Wno-macro-redefined",
]
} else {
cflags_c = [
"-Wno-implicit-fallthrough",
"-Wno-unreachable-code",
]
}
}
}
}

0 comments on commit 04798fb

Please sign in to comment.