Mercurial > hg > openttd
changeset 17391:49a25834b499 draft
(svn r22137) -Codechange: enable -Wnon-virtual-dtor for all GCC versions
author | smatz <smatz@openttd.org> |
---|---|
date | Thu, 24 Feb 2011 16:39:04 +0000 |
parents | 5463baf89de4 |
children | 186c0c24de62 |
files | config.lib |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/config.lib +++ b/config.lib @@ -1288,6 +1288,9 @@ # 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