From d94f950b51dbf4822ebebeb4e27d12002dc1b09e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Wed, 9 Jun 2010 20:32:26 +0200
Subject: Add warning flag for non-virtual destructors.


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"] :
-- 
cgit v0.10.2-6-g49f6