summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2016-12-25 13:26:15 +0000
committerfrosch <frosch@openttd.org>2016-12-25 13:26:15 +0000
commit4342798ff5100c8b5974c8c41c7b4f667f09883d (patch)
tree8d2e3e5ef3c94602a7b4ff633d4505976fcd045e /config.lib
parent9afb705125d7b17780ac81190981ba680d3473e9 (diff)
downloadopenttd-4342798ff5100c8b5974c8c41c7b4f667f09883d.tar.xz
(svn r27709) -Fix-ish: Silence some warnings. (adf88)
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.lib b/config.lib
index bf52a94c1..196e908f5 100644
--- a/config.lib
+++ b/config.lib
@@ -1404,6 +1404,9 @@ make_compiler_cflags() {
# warning: narrowing conversion of '...' from 'unsigned int' to 'int' inside { } [-Wnarrowing]
# They are valid according to the C++ standard, but useless.
cxxflags="$cxxflags -Wno-narrowing"
+ fi
+
+ if [ $cc_version -ge 407 ]; then
# Disable bogus 'attempt to free a non-heap object' warning
flags="$flags -Wno-free-nonheap-object"
fi