diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-06-09 18:32:26 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-06-09 18:33:06 (GMT) |
commit | d94f950b51dbf4822ebebeb4e27d12002dc1b09e (patch) | |
tree | 8ed01e7cb1a2725e391c4b3ee2bd22d2ad465d79 /BuildTools/SCons/SConstruct | |
parent | d3a5b0820b259d789b8ea606645890ffcb6d9741 (diff) | |
download | swift-d94f950b51dbf4822ebebeb4e27d12002dc1b09e.zip swift-d94f950b51dbf4822ebebeb4e27d12002dc1b09e.tar.bz2 |
Add warning flag for non-virtual destructors.
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r-- | BuildTools/SCons/SConstruct | 2 |
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"] : |