diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-09 22:32:33 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-09 22:32:33 +0000 |
commit | c0a6b27309927a311a2af8f561f8b2c3536c7847 (patch) | |
tree | 039b39db30c244574bf67d43c825c5a6bcf5b136 | |
parent | a70a85a9f5e2dfe6c1329843ae4560bf48dd513d (diff) | |
download | chromium_src-c0a6b27309927a311a2af8f561f8b2c3536c7847.zip chromium_src-c0a6b27309927a311a2af8f561f8b2c3536c7847.tar.gz chromium_src-c0a6b27309927a311a2af8f561f8b2c3536c7847.tar.bz2 |
linux: hide more warnings in third-party code
I was confused why we were getting warnings related to format
strings, since they are off in gcc unless you use -Wall or
explicitly enable it, but it turns out that the man page calls
out that it is specially enabled on Ubuntu.
Review URL: http://codereview.chromium.org/6469002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74351 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | build/common.gypi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index e385570..23a4753 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -664,6 +664,8 @@ ['chromium_code==0', { 'conditions': [ [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { + # We don't want to get warnings from third-party code, + # so remove any existing warning-enabling flags like -Wall. 'cflags!': [ '-Wall', '-Wextra', @@ -672,6 +674,9 @@ 'cflags': [ # Don't warn about hash_map in third-party code. '-Wno-deprecated', + # Don't warn about printf format problems. + # This is off by default in gcc but on in Ubuntu's gcc(!). + '-Wformat=0', ], }], [ 'OS=="win"', { |