diff options
author | tzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 22:02:30 +0000 |
---|---|---|
committer | tzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 22:02:30 +0000 |
commit | 66000edf797059d80c6f6f60e9ddd0203dad2524 (patch) | |
tree | 75eec2e7933ff3952545cc4fcae32863546e8090 /build | |
parent | 8e93b1ef87ffaa0b1239cac5f301689af72187d4 (diff) | |
download | chromium_src-66000edf797059d80c6f6f60e9ddd0203dad2524.zip chromium_src-66000edf797059d80c6f6f60e9ddd0203dad2524.tar.gz chromium_src-66000edf797059d80c6f6f60e9ddd0203dad2524.tar.bz2 |
Enable warning on ASan-enabled build
Enables most of compiler warning on ASan build.
BUG=162783
Review URL: https://codereview.chromium.org/391743002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283535 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/build/common.gypi b/build/common.gypi index ac4dff7..13e890e 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -3980,7 +3980,7 @@ ['_toolset=="target"', { 'cflags': [ '-fsanitize=address', - '-w', # http://crbug.com/162783 + '-Wno-error=macro-redefined', # http://crbug.com/162783 ], 'ldflags': [ '-fsanitize=address', @@ -3991,6 +3991,7 @@ ['OS=="mac"', { 'cflags': [ '-mllvm -asan-globals=0', # http://crbug.com/352073 + '-Wno-error=unused-function', # http://crbug.com/162783 ], }], ], @@ -4002,7 +4003,7 @@ '-fsanitize=undefined', # -fsanitize=vptr is incompatible with -fno-rtti. '-fno-sanitize=vptr', - '-w', # http://crbug.com/162783 + '-Wno-error=macro-redefined', # http://crbug.com/162783 ], 'ldflags': [ '-fsanitize=undefined', @@ -4011,6 +4012,13 @@ ], }], ], + 'conditions': [ + ['OS=="mac"', { + 'cflags': [ + '-Wno-error=unused-function', # http://crbug.com/162783 + ], + }], + ], }], ['ubsan_vptr==1', { 'target_conditions': [ @@ -4019,7 +4027,7 @@ '-fsanitize=vptr', '-fsanitize=null', # Avoid dereferences on null pointer objects. '-fsanitize-blacklist=<(ubsan_vptr_blacklist)', - '-w', # http://crbug.com/162783 + '-Wno-error=macro-redefined', # http://crbug.com/162783 ], 'cflags_cc!': [ '-fno-rtti', @@ -4035,6 +4043,13 @@ ], }], ], + 'conditions': [ + ['OS=="mac"', { + 'cflags': [ + '-Wno-error=unused-function', # http://crbug.com/162783 + ], + }], + ], }], ['asan_coverage!=0', { 'target_conditions': [ @@ -4608,7 +4623,8 @@ # binaries on x86_64 host is problematic. # TODO(eugenis): re-enable. '-fsanitize=address', - '-w', # http://crbug.com/162783 + '-Wno-error=macro-redefined', # http://crbug.com/162783 + ], 'ldflags!': [ '-fsanitize=address', @@ -4619,6 +4635,13 @@ '-Wl,--warn-shared-textrel', '-Wl,--fatal-warnings', ], + 'conditions': [ + ['OS=="mac"', { + 'cflags!': [ + '-Wno-error=unused-function', # http://crbug.com/162783 + ], + }], + ], }], # Settings for building host targets on mac. ['_toolset=="host" and host_os=="mac"', { @@ -4771,7 +4794,8 @@ 'OTHER_CFLAGS': [ '-fsanitize=address', '-mllvm -asan-globals=0', # http://crbug.com/352073 - '-w', # http://crbug.com/162783 + '-Wno-error=macro-redefined', # http://crbug.com/162783 + '-Wno-error=unused-function', # http://crbug.com/162783 '-gline-tables-only', ], }, |