summaryrefslogtreecommitdiff
path: root/pdfium.gyp
diff options
context:
space:
mode:
authorJohn Abd-El-Malek <jam@chromium.org>2014-06-09 16:07:18 -0700
committerJohn Abd-El-Malek <jam@chromium.org>2014-06-09 16:07:18 -0700
commitdef5c7d8af6ecb08da02c302f6c2600197d1d688 (patch)
treecc1d9b6ca3a057c5eba50e0fa58577fc80c39666 /pdfium.gyp
parent9364d22602a3db1e8f25b3e14310948857f2b54d (diff)
downloadpdfium-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 'pdfium.gyp')
-rw-r--r--pdfium.gyp7
1 files changed, 7 insertions, 0 deletions
diff --git a/pdfium.gyp b/pdfium.gyp
index 390b3f054e..7d62b1d164 100644
--- a/pdfium.gyp
+++ b/pdfium.gyp
@@ -487,6 +487,13 @@
'core/src/fxcodec/libjpeg/makefile',
'core/src/fxcodec/libjpeg/transupp.h',
],
+ 'conditions': [
+ ['os_posix==1', {
+ # 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' ],
+ }],
+ ],
},
{
'target_name': 'fxcrt',