From 7d40c99378fa2517e4b9168726b34db90c02e683 Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 24 Feb 2011 16:39:04 +0000 Subject: (svn r22137) -Codechange: enable -Wnon-virtual-dtor for all GCC versions --- config.lib | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-54-g00ecf