Index: pdfium.gyp |
diff --git a/pdfium.gyp b/pdfium.gyp |
index 390b3f054e82a1fdc312fe930a7c8c7a68ddfb75..7d62b1d1643ac28083e68019784fe444f32fc52b 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', |