[build] Suppress implicit conversion errors

This change suppress implicit conversion errors in ffmpeg to unblock
the build.

Bug: 62466
Change-Id: I1dc2fcef61e584cb2037762055687ad7be62bcdf
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/yasm/+/441916
Reviewed-by: Petr Hosek <phosek@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index db5d0f9..0eef129 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -42,19 +42,16 @@
     ]
     defines = [ "HAVE_CONFIG_H" ]
     cflags = [ "-std=gnu99" ]
+    configs = [ "//build/config:Wno-conversion" ]
   }
 
   executable("genmacro") {
-    sources = [
-      "tools/genmacro/genmacro.c",
-    ]
+    sources = [ "tools/genmacro/genmacro.c" ]
     configs += [ ":yasm_config" ]
   }
 
   executable("genmodule") {
-    sources = [
-      "libyasm/genmodule.c",
-    ]
+    sources = [ "libyasm/genmodule.c" ]
     configs += [ ":yasm_config" ]
   }
 
@@ -66,9 +63,7 @@
 
     configs += [ ":yasm_config" ]
 
-    deps = [
-      ":yasm_utils",
-    ]
+    deps = [ ":yasm_utils" ]
   }
 
   # Used by both yasm and genperf binaries.
@@ -83,16 +78,12 @@
   }
 
   executable("genstring") {
-    sources = [
-      "genstring.c",
-    ]
+    sources = [ "genstring.c" ]
     configs += [ ":yasm_config" ]
   }
 
   executable("genversion") {
-    sources = [
-      "modules/preprocs/nasm/genversion.c",
-    ]
+    sources = [ "modules/preprocs/nasm/genversion.c" ]
     configs += [ ":yasm_config" ]
   }
 
@@ -268,16 +259,12 @@
       "modules/arch/x86/x86regtmod.gperf",
     ]
 
-    outputs = [
-      "$target_gen_dir/{{source_name_part}}.c",
-    ]
+    outputs = [ "$target_gen_dir/{{source_name_part}}.c" ]
     args = [
       "{{source}}",
       rebase_path(target_gen_dir, root_build_dir) + "/{{source_name_part}}.c",
     ]
-    deps = [
-      ":generate_x86_insn",
-    ]
+    deps = [ ":generate_x86_insn" ]
   }
 
   # This differs from |compile_gperf| in where it places it output files.
@@ -294,17 +281,13 @@
       "$yasm_gen_include_dir/x86insn_nasm.gperf",
     ]
 
-    outputs = [
-      "$yasm_gen_include_dir/{{source_name_part}}.c",
-    ]
+    outputs = [ "$yasm_gen_include_dir/{{source_name_part}}.c" ]
     args = [
       "{{source}}",
       rebase_path(yasm_gen_include_dir, root_build_dir) +
           "/{{source_name_part}}.c",
     ]
-    deps = [
-      ":generate_x86_insn",
-    ]
+    deps = [ ":generate_x86_insn" ]
   }
 
   template("compile_macro") {
@@ -328,49 +311,31 @@
   compile_macro("compile_nasm_macros") {
     # Output #included by
     #   modules/preprocs/nasm/nasm-parser.c
-    sources = [
-      "modules/parsers/nasm/nasm-std.mac",
-    ]
-    outputs = [
-      "$yasm_gen_include_dir/nasm-macros.c",
-    ]
+    sources = [ "modules/parsers/nasm/nasm-std.mac" ]
+    outputs = [ "$yasm_gen_include_dir/nasm-macros.c" ]
     macro_varname = "nasm_standard_mac"
   }
 
   compile_macro("compile_nasm_version") {
     # Output #included by
     #   modules/preprocs/nasm/nasm-preproc.c
-    sources = [
-      "$target_gen_dir/$version_file",
-    ]
-    outputs = [
-      "$yasm_gen_include_dir/nasm-version.c",
-    ]
+    sources = [ "$target_gen_dir/$version_file" ]
+    outputs = [ "$yasm_gen_include_dir/nasm-version.c" ]
     macro_varname = "nasm_version_mac"
-    deps = [
-      ":generate_version",
-    ]
+    deps = [ ":generate_version" ]
   }
 
   compile_macro("compile_win64_gas") {
     # Output #included by frontends/yasm/yasm.c.
-    sources = [
-      "modules/objfmts/coff/win64-gas.mac",
-    ]
-    outputs = [
-      "$yasm_gen_include_dir/win64-gas.c",
-    ]
+    sources = [ "modules/objfmts/coff/win64-gas.mac" ]
+    outputs = [ "$yasm_gen_include_dir/win64-gas.c" ]
     macro_varname = "win64_gas_stdmac"
   }
 
   compile_macro("compile_win64_nasm") {
     # Output #included by frontends/yasm/yasm.c.
-    sources = [
-      "modules/objfmts/coff/win64-nasm.mac",
-    ]
-    outputs = [
-      "$yasm_gen_include_dir/win64-nasm.c",
-    ]
+    sources = [ "modules/objfmts/coff/win64-nasm.mac" ]
+    outputs = [ "$yasm_gen_include_dir/win64-nasm.c" ]
     macro_varname = "win64_nasm_stdmac"
   }
 
@@ -380,9 +345,7 @@
       "modules/parsers/gas/gas-token.re",
       "modules/parsers/nasm/nasm-token.re",
     ]
-    outputs = [
-      "$target_gen_dir/{{source_name_part}}.c",
-    ]
+    outputs = [ "$target_gen_dir/{{source_name_part}}.c" ]
     args = [
       "-b",
       "-o",
@@ -394,12 +357,8 @@
   # This call doesn't fit into the re2c template above.
   compiled_action("compile_re2c_lc3b") {
     tool = ":re2c"
-    inputs = [
-      "modules/arch/lc3b/lc3bid.re",
-    ]
-    outputs = [
-      "$target_gen_dir/lc3bid.c",
-    ]
+    inputs = [ "modules/arch/lc3b/lc3bid.re" ]
+    outputs = [ "$target_gen_dir/lc3bid.c" ]
     args = [
       "-s",
       "-o",
@@ -412,12 +371,8 @@
     tool = ":genstring"
 
     # Output #included by frontends/yasm/yasm.c.
-    inputs = [
-      "COPYING",
-    ]
-    outputs = [
-      "$yasm_gen_include_dir/license.c",
-    ]
+    inputs = [ "COPYING" ]
+    outputs = [ "$yasm_gen_include_dir/license.c" ]
     args = [
       "license_msg",
       rebase_path(outputs[0], root_build_dir),
@@ -431,9 +386,7 @@
       "libyasm/module.in",
       config_makefile,
     ]
-    outputs = [
-      "$target_gen_dir/module.c",
-    ]
+    outputs = [ "$target_gen_dir/module.c" ]
     args = [
       rebase_path(inputs[0], root_build_dir),
       rebase_path(config_makefile, root_build_dir),
@@ -443,9 +396,7 @@
 
   compiled_action("generate_version") {
     tool = ":genversion"
-    outputs = [
-      "$target_gen_dir/$version_file",
-    ]
+    outputs = [ "$target_gen_dir/$version_file" ]
     args = [ rebase_path(outputs[0], root_build_dir) ]
   }