diff options
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 |