[Wconversion] Suppress warnings on Fuchsia

Bug: fuchsia:56258

Change-Id: I0500d917ed51200bfe27c5ee4df7eb4344cd70a7
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2345384
Reviewed-by: Scott Graham <scottmg@chromium.org>
Commit-Queue: Scott Graham <scottmg@chromium.org>
GitOrigin-RevId: 59e8120e7ada3608f68f42cbbab423bcc163a326
diff --git a/client/BUILD.gn b/client/BUILD.gn
index f448d35..10b994f 100644
--- a/client/BUILD.gn
+++ b/client/BUILD.gn
@@ -116,6 +116,7 @@
     deps += [ "../third_party/fuchsia" ]
     if (crashpad_is_in_fuchsia) {
       deps += [ "//sdk/lib/fdio" ]
+      configs += [ "//build/config:Wno-conversion" ]
     }
   }
 }
diff --git a/compat/BUILD.gn b/compat/BUILD.gn
index f2ffcf5..d3045eb 100644
--- a/compat/BUILD.gn
+++ b/compat/BUILD.gn
@@ -171,4 +171,8 @@
   if (!crashpad_is_linux && !crashpad_is_android && !crashpad_is_fuchsia) {
     deps += [ "../third_party/glibc" ]
   }
+
+  if (crashpad_is_in_fuchsia) {
+    configs = [ "//build/config:Wno-conversion" ]
+  }
 }
diff --git a/snapshot/BUILD.gn b/snapshot/BUILD.gn
index 8615c99..8da697d 100644
--- a/snapshot/BUILD.gn
+++ b/snapshot/BUILD.gn
@@ -261,6 +261,10 @@
   }
 
   configs += [ "..:disable_ubsan" ]
+
+  if (crashpad_is_in_fuchsia) {
+    configs += [ "//build/config:Wno-conversion" ]
+  }
 }
 
 # :context is the only part of snapshot that minidump may depend on.
@@ -281,6 +285,10 @@
   if (crashpad_is_win) {
     cflags = [ "/wd4201" ]  # nonstandard extension used : nameless struct/union
   }
+
+  if (crashpad_is_in_fuchsia) {
+    configs += [ "//build/config:Wno-conversion" ]
+  }
 }
 
 if (crashpad_is_linux) {
diff --git a/util/BUILD.gn b/util/BUILD.gn
index 2e1bbee..4654fab 100644
--- a/util/BUILD.gn
+++ b/util/BUILD.gn
@@ -612,6 +612,10 @@
   }
 
   configs += [ "..:disable_ubsan" ]
+
+  if (crashpad_is_in_fuchsia) {
+    configs += [ "//build/config:Wno-conversion" ]
+  }
 }
 
 if (!crashpad_is_android && !crashpad_is_ios) {