# HG changeset patch # User smatz # Date 2011-02-24 16:39:04 # Node ID 6ee000e68cd042539c69d5a26b736ce0eb2a18d5 # Parent bee039a5952badbdf8d0b6ef216ec5806be39e23 (svn r22137) -Codechange: enable -Wnon-virtual-dtor for all GCC versions diff --git a/config.lib b/config.lib --- 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