Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: BUILD.gn

Issue 319033002: Disable pointer-to-int conversion warning. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pdfium.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index 2021b4cd89fe19e6f4c28a1066a4ca4009e6c841..fea9e33cc8d8e78f5eaa2eaeb1791b56ec1313b5 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -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" ]
}
« no previous file with comments | « no previous file | pdfium.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698