Chromium Code Reviews| Index: BUILD.gn |
| diff --git a/BUILD.gn b/BUILD.gn |
| index 402fe2352a382f31496a7bc707305b3fc4547b84..09a6542b9bf33dc16ff929823e84fc3111eade15 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") { |