Suppress -Wswitch for pdfium's fxge target for now.
authorNico Weber <thakis@chromium.org>
Mon, 17 Aug 2015 04:17:54 +0000 (21:17 -0700)
committerNico Weber <thakis@chromium.org>
Mon, 17 Aug 2015 04:17:54 +0000 (21:17 -0700)
BUG=pdfium:188
R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1301473003 .

BUILD.gn
pdfium.gyp

index 22265b1..3cc4618 100644 (file)
--- 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) {
index c3d591e..d7f00bc 100644 (file)
         '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': [