mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 03:47:44 -03:00
Update BUILD.gn
This commit is contained in:
parent
f0dc15b4fd
commit
ec3dc5a388
1 changed files with 14 additions and 4 deletions
18
third_party/zlib/BUILD.gn
vendored
18
third_party/zlib/BUILD.gn
vendored
|
@ -371,8 +371,11 @@ config("minizip_warnings") {
|
|||
visibility = [ ":*" ]
|
||||
|
||||
if (is_clang) {
|
||||
# zlib uses `if ((a == b))` for some reason.
|
||||
cflags = [ "-Wno-parentheses-equality" ]
|
||||
cflags = [
|
||||
# zlib uses `if ((a == b))` for some reason.
|
||||
"-Wno-parentheses-equality",
|
||||
"-Wno-deprecated-non-prototype",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -436,7 +439,11 @@ if (!is_win || target_os != "winuwp") {
|
|||
sources = [ "contrib/minizip/minizip.c" ]
|
||||
|
||||
if (is_clang) {
|
||||
cflags = [ "-Wno-incompatible-pointer-types-discards-qualifiers" ]
|
||||
cflags = [
|
||||
"-Wno-incompatible-pointer-types-discards-qualifiers",
|
||||
|
||||
"-Wno-deprecated-non-prototype",
|
||||
]
|
||||
}
|
||||
|
||||
if (!is_debug) {
|
||||
|
@ -456,7 +463,10 @@ if (!is_win || target_os != "winuwp") {
|
|||
sources = [ "contrib/minizip/miniunz.c" ]
|
||||
|
||||
if (is_clang) {
|
||||
cflags = [ "-Wno-incompatible-pointer-types-discards-qualifiers" ]
|
||||
cflags = [
|
||||
"-Wno-incompatible-pointer-types-discards-qualifiers",
|
||||
"-Wno-deprecated-non-prototype",
|
||||
]
|
||||
}
|
||||
|
||||
if (!is_debug) {
|
||||
|
|
Loading…
Reference in a new issue