summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-06-09 18:32:26 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-06-09 18:33:06 (GMT)
commitd94f950b51dbf4822ebebeb4e27d12002dc1b09e (patch)
tree8ed01e7cb1a2725e391c4b3ee2bd22d2ad465d79 /BuildTools
parentd3a5b0820b259d789b8ea606645890ffcb6d9741 (diff)
downloadswift-d94f950b51dbf4822ebebeb4e27d12002dc1b09e.zip
swift-d94f950b51dbf4822ebebeb4e27d12002dc1b09e.tar.bz2
Add warning flag for non-virtual destructors.
Diffstat (limited to 'BuildTools')
-rw-r--r--BuildTools/SCons/SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 7d24b66..f14fae6 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -110,7 +110,7 @@ if env["warnings"] :
if env["PLATFORM"] == "win32" :
env.Append(CCFLAGS = ["/Wall"])
else :
- env.Append(CCFLAGS = ["-W", "-Wall"])
+ env.Append(CCFLAGS = ["-W", "-Wall", "-Wnon-virtual-dtor"])
#env.Append(CCFLAGS = ["-W", "-Wall", "-Wredundant-decls", "-pedantic", "-Wno-long-long", "-Woverloaded-virtual", "-Wundef", "-Wfloat-equal", "-Wold-style-cast"])
gccVersion = env["CCVERSION"].split(".")
if gccVersion >= ["4", "5", "0"] :