summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-30 16:47:56 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-30 16:47:56 +0000
commit7f51e9e8a8ae2cadb278aa5420a4a8ecef1beb70 (patch)
treede439871cd417649d427d675ee01924b18a1f235 /build
parent66799ce230d2b7fd194e178bd7821a645865d6b5 (diff)
downloadchromium_src-7f51e9e8a8ae2cadb278aa5420a4a8ecef1beb70.zip
chromium_src-7f51e9e8a8ae2cadb278aa5420a4a8ecef1beb70.tar.gz
chromium_src-7f51e9e8a8ae2cadb278aa5420a4a8ecef1beb70.tar.bz2
Add -Wsign-compare for C++ compilation on linux & friends.
g++ -Wall includes -Wsign-compare on C++ source, but clang++ doesn't. BUG=none TEST=none Review URL: http://codereview.chromium.org/6771022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi6
1 files changed, 5 insertions, 1 deletions
diff --git a/build/common.gypi b/build/common.gypi
index b911258..475339b 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -1,4 +1,4 @@
-# Copyright (c) 2010 The Chromium Authors. All rights reserved.
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -1033,6 +1033,10 @@
# Make inline functions have hidden visiblity by default.
# Surprisingly, not covered by -fvisibility=hidden.
'-fvisibility-inlines-hidden',
+ # GCC turns on -Wsign-compare for C++ under -Wall, but clang doesn't,
+ # so we specify it explicitly.
+ # TODO(fischman): remove this if http://b/4187267 obsoletes it.
+ '-Wsign-compare',
],
'ldflags': [
'-pthread', '-Wl,-z,noexecstack',