summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUILD.gn6
1 files changed, 5 insertions, 1 deletions
diff --git a/BUILD.gn b/BUILD.gn
index b18c76eaaa..9f3b27e9bc 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -65,10 +65,14 @@ config("pdfium_config") {
]
}
- if (is_clang) {
+ if (is_clang || is_posix) {
# TODO(thestig): Fix all instances, remove this, pdfium:29
cflags += [ "-Wno-sign-compare" ]
}
+
+ if (is_posix && !is_clang) { # When GCC.
+ cflags += [ "-Wno-error=strict-overflow" ]
+ }
}
static_library("pdfium") {