summaryrefslogtreecommitdiffstats
path: root/build/config
diff options
context:
space:
mode:
authorthakis <thakis@chromium.org>2016-01-04 12:10:57 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-04 20:12:38 +0000
commit09874b50f59f11ddd1268d6da87989ae09f07bfb (patch)
tree9cd6997f0ad947fcdf8bdebf143bf1673f4d9d07 /build/config
parent87ec0f76f838b5ff7c0b4aa80d8d2bf06418eb45 (diff)
downloadchromium_src-09874b50f59f11ddd1268d6da87989ae09f07bfb.zip
chromium_src-09874b50f59f11ddd1268d6da87989ae09f07bfb.tar.gz
chromium_src-09874b50f59f11ddd1268d6da87989ae09f07bfb.tar.bz2
linux: Build third-party code with -Wunused-result.
Part of an effort to make warning flags consistent across platforms. BUG=574077 Review URL: https://codereview.chromium.org/1559903002 Cr-Commit-Position: refs/heads/master@{#367355}
Diffstat (limited to 'build/config')
-rw-r--r--build/config/compiler/BUILD.gn8
1 files changed, 0 insertions, 8 deletions
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 904cdc7..8f827de 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -946,14 +946,6 @@ config("no_chromium_code") {
cflags += [ "-Wall" ]
}
- if (is_linux) {
- # Don't warn about ignoring the return value from e.g. close(). This is
- # off by default in some gccs but on by default in others. BSD systems do
- # not support this option, since they are usually using gcc 4.2.1, which
- # does not have this flag yet.
- cflags += [ "-Wno-unused-result" ]
- }
-
if (is_clang) {
cflags += [
# Lots of third-party libraries have unused variables. Instead of