diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-20 22:56:30 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-20 22:56:30 +0000 |
commit | 9f58d8bb68966e20fc2809e221d925b895ca762e (patch) | |
tree | aa6885bd03e9c295195779f62d562e9193995df7 /build/SConscript.main | |
parent | 6a6e657234868ad4044b03bdeb9c6f7e872b5ee6 (diff) | |
download | chromium_src-9f58d8bb68966e20fc2809e221d925b895ca762e.zip chromium_src-9f58d8bb68966e20fc2809e221d925b895ca762e.tar.gz chromium_src-9f58d8bb68966e20fc2809e221d925b895ca762e.tar.bz2 |
Turn on -Wall -Werror, fixing a few files while I'm here and *temporarily* disabling some other warnings that take more effort to fix.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1123 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/SConscript.main')
-rw-r--r-- | build/SConscript.main | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/build/SConscript.main b/build/SConscript.main index 7965985..b03ee4a 100644 --- a/build/SConscript.main +++ b/build/SConscript.main @@ -333,9 +333,15 @@ elif env['PLATFORM'] == 'posix': 'webkit', ] + # TODO: fix code that triggers these warnings. + excluded_warnings = [ + '-Wno-unknown-pragmas', # TODO: remove all the Windows-specific #pragmas. + '-Wno-unused-function', # TODO: there's just one Skia function. + '-Wno-switch', # TODO: this is likely masking real bugs. + '-Wno-sign-compare', # TODO: this is likely masking real bugs. + ] env.Replace( - # TODO(linux): we should also compile with -Werror, but not yet. - CCFLAGS = ['-m32', '-g'], + CCFLAGS = ['-m32', '-g', '-Wall', '-Werror'] + excluded_warnings, LINKFLAGS = ['-m32'], # We need pthread for threading, and rt for clock_gettime. LIBS = ['pthread', 'rt'], |