summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUILD.gn9
-rw-r--r--pdfium.gyp6
2 files changed, 15 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) {
diff --git a/pdfium.gyp b/pdfium.gyp
index c3d591e818..d7f00bc8b4 100644
--- a/pdfium.gyp
+++ b/pdfium.gyp
@@ -499,6 +499,12 @@
'core/src/fxge/ge/fx_ge_text.cpp',
'core/src/fxge/ge/text_int.h',
],
+ 'variables': {
+ 'clang_warning_flags': [
+ # http://code.google.com/p/pdfium/issues/detail?id=188
+ '-Wno-switch',
+ ],
+ },
'conditions': [
['pdf_use_skia==1', {
'sources': [