diff options
author | thakis <thakis@chromium.org> | 2016-01-04 12:10:57 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-04 20:12:38 +0000 |
commit | 09874b50f59f11ddd1268d6da87989ae09f07bfb (patch) | |
tree | 9cd6997f0ad947fcdf8bdebf143bf1673f4d9d07 /build | |
parent | 87ec0f76f838b5ff7c0b4aa80d8d2bf06418eb45 (diff) | |
download | chromium_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')
-rw-r--r-- | build/common.gypi | 9 | ||||
-rw-r--r-- | build/config/compiler/BUILD.gn | 8 |
2 files changed, 0 insertions, 17 deletions
diff --git a/build/common.gypi b/build/common.gypi index 5efa569..dd22763 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -3158,15 +3158,6 @@ '-Werror', ], }], - [ 'os_posix==1 and os_bsd!=1 and OS!="mac" and OS!="android"', { - 'cflags': [ - # 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. - '-Wno-unused-result', - ], - }], [ 'OS=="win"', { 'defines': [ '_CRT_SECURE_NO_DEPRECATE', 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 |