summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorweili <weili@chromium.org>2016-05-27 13:21:54 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-27 13:21:54 -0700
commitd23df55b95716a4b6021ab600b99fd31954c8052 (patch)
tree02095dd966c3430b0cc977b14db10d12d3af8fc9
parenta54bc400fa69491ad72ad97f74742ec28cbe849a (diff)
downloadpdfium-d23df55b95716a4b6021ab600b99fd31954c8052.tar.xz
Change to disable a warning for GCC compilationchromium/2754chromium/2753chromium/2752chromium/2751
The warning was only shown and asked not to be treated as an error. However, some recent flag change of chromeos toolchain has some interference with the warning. To avoid future problem, disable the warning for GCC. BUG=chromium:615424 Review-Url: https://codereview.chromium.org/2013163003
-rw-r--r--BUILD.gn2
-rw-r--r--xfa.gyp2
2 files changed, 2 insertions, 2 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 2d75349f7e..1550209ce1 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -51,7 +51,7 @@ config("pdfium_config") {
}
if (is_posix && !is_clang) { # When GCC.
- cflags += [ "-Wno-error=strict-overflow" ]
+ cflags += [ "-Wno-strict-overflow" ]
}
}
diff --git a/xfa.gyp b/xfa.gyp
index ead79d3c15..14a813096b 100644
--- a/xfa.gyp
+++ b/xfa.gyp
@@ -699,7 +699,7 @@
["clang==1" , {
}],
["os_posix==1 and clang==0", { # When GCC
- 'cflags': [ '-Wno-error=strict-overflow' ],
+ 'cflags': [ '-Wno-strict-overflow' ],
}],
["pdf_enable_v8==1", {
'dependencies': [