[Wconversion] Suppress warnings
Bug: 56258
Bug: 58162

Change-Id: Ie8883cce7ca38d39c55cb670fb62456ecc8edd59
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/zlib/+/422708
Reviewed-by: Petr Hosek <phosek@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 43ea876..7cc8291 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -33,7 +33,10 @@
 config("zlib_warnings") {
   visibility = [ ":*" ]
 
-  cflags = [ "-Wno-implicit-function-declaration" ]
+  cflags = [
+    "-Wno-implicit-function-declaration",
+    "-Wno-conversion",
+  ]
 }
 
 # TODO(36315): Remove workaround for Rust host_toolchain
@@ -41,23 +44,19 @@
   # Without `-fPIC`, we get the error:
   # > ld.lld: error: can't create dynamic relocation R_X86_64_64 against local symbol in readonly
   # > segment
-  cflags = ["-fPIC"]
+  cflags = [ "-fPIC" ]
 }
 
 if (is_fuchsia) {
   shared_library("zlib") {
     output_name = "z"
-    deps = [
-      ":zlib_static",
-    ]
+    deps = [ ":zlib_static" ]
 
     public_configs = [ ":zlib_config" ]
   }
 } else {
   group("zlib") {
-    deps = [
-      ":zlib_static",
-    ]
+    deps = [ ":zlib_static" ]
 
     public_configs = [ ":zlib_config" ]
   }
@@ -130,6 +129,7 @@
       "-Wno-parentheses-equality",
       "-Wno-unknown-warning-option",
       "-Wno-misleading-indentation",
+      "-Wno-conversion",
     ]
   }
 }
@@ -145,9 +145,7 @@
     "contrib/minizip/zip.h",
   ]
 
-  deps = [
-    ":zlib",
-  ]
+  deps = [ ":zlib" ]
   configs += [ ":minizip_warnings" ]
   configs -= [ "//build/config:symbol_visibility_hidden" ]
   public_configs = [ ":zlib_config" ]
@@ -159,8 +157,6 @@
     "contrib/iostream3/zfstream.h",
   ]
 
-  deps = [
-    ":zlib",
-  ]
+  deps = [ ":zlib" ]
   public_configs = [ ":zlib_config" ]
 }