summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2015-08-16 21:17:54 -0700
committerNico Weber <thakis@chromium.org>2015-08-16 21:17:54 -0700
commitfdc8f439e854a2636e7d22d7104bf08cf5620b0b (patch)
tree9ab6ed2a14ffc1e84581c2b4f2880362689f422b /BUILD.gn
parent38665a257c04d7f5300da83876650702a01eb397 (diff)
downloadpdfium-fdc8f439e854a2636e7d22d7104bf08cf5620b0b.tar.xz
Suppress -Wswitch for pdfium's fxge target for now.chromium/2487chromium/2486
BUG=pdfium:188 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1301473003 .
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn9
1 files changed, 9 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 22265b12cb..3cc46180a6 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -505,10 +505,19 @@ static_library("fxge") {
"core/src/fxge/ge/text_int.h",
]
+ config("fxge_warnings") {
+ if (is_clang) {
+ cflags = [
+ # http://code.google.com/p/pdfium/issues/detail?id=188
+ "-Wno-switch",
+ ]
+ }
+ }
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
":pdfium_config",
"//build/config/compiler:no_chromium_code",
+ ":fxge_warnings",
]
if (pdf_use_skia) {