summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authormazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-13 06:28:03 +0000
committermazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-13 06:28:03 +0000
commitbc073c0623414e6b869a5d83dff00341e1fd4c39 (patch)
tree15d68210d8bc68264651962723062bc966962dba /build
parent6e5a3f1381da7014c9d4a3fca5b1f820eb83e521 (diff)
downloadchromium_src-bc073c0623414e6b869a5d83dff00341e1fd4c39.zip
chromium_src-bc073c0623414e6b869a5d83dff00341e1fd4c39.tar.gz
chromium_src-bc073c0623414e6b869a5d83dff00341e1fd4c39.tar.bz2
Set -Wno-unused-result for Chrome OS build
Now gcc in chroot is updated to 4.6 and this option is available. BUG=chromium-os:18541 TEST='emerge-stumpy chromeos-chrome' succeeds in chroot. Review URL: http://codereview.chromium.org/9196001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117615 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi11
1 files changed, 3 insertions, 8 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 6684e20..154b947 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -1280,17 +1280,12 @@
'-Wsign-compare',
]
}],
- [ 'os_posix==1 and os_bsd!=1 and OS!="mac" and OS!="android" and chromeos==0', {
+ [ '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.
- # Currently this option is not set for Chrome OS build because
- # the current version of gcc (4.3.4) used for building Chrome in
- # Chrome OS chroot doesn't support this option.
- # BSD systems do not support this option either, since they are
- # usually using gcc 4.2.1, which does not have this flag yet.
- # TODO(mazda): remove the conditional for Chrome OS when gcc
- # version is upgraded.
+ # 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',
],
}],