aboutsummaryrefslogtreecommitdiffstats
path: root/scons
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-12-16 19:54:05 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-12-16 19:54:05 +0000
commitd56773b492b7b675d5c547baab815289a7815bdd (patch)
tree59322de2099c9879b4a10a298ecf6e6b03a63ace /scons
parent3508784108a38d673a0c7d14c897e7a51b2a7e36 (diff)
downloadgoogletest-d56773b492b7b675d5c547baab815289a7815bdd.tar.gz
googletest-d56773b492b7b675d5c547baab815289a7815bdd.tar.bz2
googletest-d56773b492b7b675d5c547baab815289a7815bdd.zip
Turns on -Wshadow (by Preston Jackson).
Diffstat (limited to 'scons')
-rw-r--r--scons/SConstruct.common1
1 files changed, 1 insertions, 0 deletions
diff --git a/scons/SConstruct.common b/scons/SConstruct.common
index 3f9d9ca0..7f6db158 100644
--- a/scons/SConstruct.common
+++ b/scons/SConstruct.common
@@ -193,6 +193,7 @@ class SConstructHelper:
env.Append(CCFLAGS=['-fno-exceptions',
'-Wall',
'-Werror',
+ '-Wshadow',
])
if optimized:
env.Append(CCFLAGS=['-O2'], CPPDEFINES=['NDEBUG', '_NDEBUG'])