Skip to content

Commit

Permalink
linux/clang: Disable the last two warnings, turn on -Werror
Browse files Browse the repository at this point in the history
BUG=138571
TBR=tony

Review URL: https://chromiumcodereview.appspot.com/10855238

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152242 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
thakis@chromium.org committed Aug 18, 2012
1 parent a5b3e3a commit 82dd5eb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
8 changes: 8 additions & 0 deletions breakpad/breakpad.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,14 @@
'..',
'.',
],
'conditions': [
[ 'clang == 1', {
'cflags': [
# See http://crbug.com/138571#c18
'-Wno-unused-value',
],
}],
],
},
{
'target_name': 'linux_dumper_unittest_helper',
Expand Down
7 changes: 6 additions & 1 deletion build/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,6 @@
'cflags!': [
'-Wall',
'-Wextra',
'-Werror',
],
'cflags_cc': [
# Don't warn about hash_map in third-party code.
Expand All @@ -1635,6 +1634,12 @@
'-Wsign-compare',
]
}],
# TODO: Fix all warnings on chromeos too.
[ 'os_posix==1 and OS!="mac" and OS!="ios" and (clang!=1 or chromeos==1)', {
'cflags!': [
'-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().
Expand Down
7 changes: 7 additions & 0 deletions net/third_party/nss/ssl.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@
],
'msvs_disabled_warnings': [4018, 4244],
'conditions': [
[ 'clang == 1', {
'cflags': [
# See http://crbug.com/138571#c8. In short, sslsecur.c picks up the
# system's cert.h because cert.h isn't in chromium's repo.
'-Wno-incompatible-pointer-types',
],
}],
[ 'OS == "mac" or OS == "ios"', {
'defines': [
'XP_UNIX',
Expand Down

0 comments on commit 82dd5eb

Please sign in to comment.