diff options
author | thakis <thakis@chromium.org> | 2015-07-20 11:10:55 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-20 18:11:42 +0000 |
commit | 803f983242c850986820e2f8de8a2f403086bea9 (patch) | |
tree | 0aeb9facd9b3c15b926c35e1fa7a791766d568db /third_party/yasm | |
parent | 6be0628ff61f6ffd12d686caddb8c522e10824a9 (diff) | |
download | chromium_src-803f983242c850986820e2f8de8a2f403086bea9.zip chromium_src-803f983242c850986820e2f8de8a2f403086bea9.tar.gz chromium_src-803f983242c850986820e2f8de8a2f403086bea9.tar.bz2 |
clang/win: Enable -Wunused-local-typedef
BUG=411648
TBR=jam
Review URL: https://codereview.chromium.org/1236863009
Cr-Commit-Position: refs/heads/master@{#339470}
Diffstat (limited to 'third_party/yasm')
-rw-r--r-- | third_party/yasm/BUILD.gn | 10 | ||||
-rw-r--r-- | third_party/yasm/yasm.gyp | 2 |
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': [ |