diff options
author | John Abd-El-Malek <jam@chromium.org> | 2014-06-09 16:07:18 -0700 |
---|---|---|
committer | John Abd-El-Malek <jam@chromium.org> | 2014-06-09 16:07:18 -0700 |
commit | def5c7d8af6ecb08da02c302f6c2600197d1d688 (patch) | |
tree | cc1d9b6ca3a057c5eba50e0fa58577fc80c39666 /BUILD.gn | |
parent | 9364d22602a3db1e8f25b3e14310948857f2b54d (diff) | |
download | pdfium-def5c7d8af6ecb08da02c302f6c2600197d1d688.tar.xz |
Disable pointer-to-int conversion warning.
In this case the warning is benign.
Original patch by Brett Wilson <brettw@chromium.org>
R=jam@chromium.org
Review URL: https://codereview.chromium.org/319033002
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -474,6 +474,12 @@ static_library("fxcodec") { if (is_posix) { configs -= [ "//build/config/gcc:no_exceptions" ] } + + if (is_posix) { + # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int + # conversion to check that an address is 16-bit aligned (benign). + cflags_c = [ "-Wno-pointer-to-int-cast" ] + } configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] } |