summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2011-02-24 16:39:04 +0000
committersmatz <smatz@openttd.org>2011-02-24 16:39:04 +0000
commit7d40c99378fa2517e4b9168726b34db90c02e683 (patch)
tree186c2072e49c932938bdbae865df521102e5c21d
parentac0700c56413de6eb938991beae48427687b5fc0 (diff)
downloadopenttd-7d40c99378fa2517e4b9168726b34db90c02e683.tar.xz
(svn r22137) -Codechange: enable -Wnon-virtual-dtor for all GCC versions
-rw-r--r--config.lib3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.lib b/config.lib
index 5e3467a23..dc228de8c 100644
--- a/config.lib
+++ b/config.lib
@@ -1288,6 +1288,9 @@ make_compiler_cflags() {
# sure that they will not happen. It furthermore complains
# about its own optimized code in some places.
flags="$flags -fno-strict-overflow"
+ # GCC 4.2 no longer includes -Wnon-virtual-dtor in -Wall.
+ # Enable it in order to be consistent with older GCC versions.
+ flags="$flags -Wnon-virtual-dtor"
fi
if [ $cc_version -ge 43 ]; then