summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2018-01-31 16:20:22 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-31 16:20:22 +0000
commitfa61a7476d6be1dfd5c46be53996ba3ca7a3a610 (patch)
treeae926163501df4ae488c9f4577f6c0bb83a81f3c /BUILD.gn
parent41b45a88f14ea546d1b46b7c30a1c9c1db778ac3 (diff)
downloadpdfium-fa61a7476d6be1dfd5c46be53996ba3ca7a3a610.tar.xz
Explicitly suppress -Wimplicit-fallthrough for pdfium.
No behavior change since that warning isn't enabled anywhere yet, and it's opt-in. This is a prerequisite for https://chromium-review.googlesource.com/c/chromium/src/+/895726 Bug: chromium:177475 Change-Id: I844455a19ed76b5deb0201a878576ab0d5418a71 Reviewed-on: https://pdfium-review.googlesource.com/24790 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn4
1 files changed, 4 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 1323f2a838..79c9747edf 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -71,6 +71,10 @@ config("pdfium_common_config") {
# Assume UTF-8 by default to avoid code page dependencies.
cflags += [ "/utf-8" ]
}
+ if (is_clang) {
+ # TODO(thakis): Consider enabling this, https://crbug.com/807632
+ cflags += [ "-Wno-implicit-fallthrough" ]
+ }
}
config("pdfium_core_config") {