summaryrefslogtreecommitdiffstats
path: root/third_party/yasm
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/yasm')
-rw-r--r--third_party/yasm/BUILD.gn10
-rw-r--r--third_party/yasm/yasm.gyp2
2 files changed, 12 insertions, 0 deletions
diff --git a/third_party/yasm/BUILD.gn b/third_party/yasm/BUILD.gn
index 73bc676..23e160e 100644
--- a/third_party/yasm/BUILD.gn
+++ b/third_party/yasm/BUILD.gn
@@ -253,6 +253,16 @@ if (current_toolchain == host_toolchain) {
"//build/config/compiler:no_incompatible_pointer_warnings",
]
+ config("yasm_warnings") {
+ if (is_clang) {
+ cflags = [
+ # reg3264type in x86expr.c is unused.
+ "-Wno-unused-local-typedef",
+ ]
+ }
+ }
+ configs += [ ":yasm_warnings" ]
+
# Yasm generates a bunch of .c files which its source file #include.
# Add the |target_gen_dir| into the include path so it can find them.
# Ideally, these generated .c files would be placed into a separate
diff --git a/third_party/yasm/yasm.gyp b/third_party/yasm/yasm.gyp
index e02124a..1f963a3 100644
--- a/third_party/yasm/yasm.gyp
+++ b/third_party/yasm/yasm.gyp
@@ -81,6 +81,8 @@
'clang_warning_flags': [
# yasm passes a `const elf_machine_sym*` through `void*`.
'-Wno-incompatible-pointer-types',
+ # reg3264type in x86expr.c is unused.
+ '-Wno-unused-local-typedef',
],
},
'conditions': [