diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn index d23738cd..a76beed3 100644 --- a/third_party/zlib/BUILD.gn +++ b/third_party/zlib/BUILD.gn @@ -197,6 +197,7 @@ source_set("zlib_inflate_chunk_simd") { # style function declarations, which triggers warning C4131. configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ ":zlib_warnings" ] public_configs = [ ":zlib_inflate_chunk_simd_config" ] @@ -263,8 +264,11 @@ source_set("zlib_slide_hash_simd") { } config("zlib_warnings") { - if (is_clang && use_x86_x64_optimizations) { - cflags = [ "-Wno-incompatible-pointer-types" ] + if (is_clang) { + cflags = [ "-Wno-deprecated-non-prototype" ] + if (use_x86_x64_optimizations) { + cflags += [ "-Wno-incompatible-pointer-types" ] + } } }