summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2011-08-24 18:21:54 +0000
committersmatz <smatz@openttd.org>2011-08-24 18:21:54 +0000
commit605bec09854b0cd627495944863e098cba267b2c (patch)
tree8835b1342a905097eb7aa4764ad4dd6e9585600c /config.lib
parentf5faf834b25d7fcac915f257900cb88a49847c9f (diff)
downloadopenttd-605bec09854b0cd627495944863e098cba267b2c.tar.xz
(svn r22832) -Codechange: add -Wno-free-nonheap-object to CFLAGS in order to prevent some invalid GCC warnings
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.lib b/config.lib
index 523b6104c..2c7e0ff78 100644
--- a/config.lib
+++ b/config.lib
@@ -1304,6 +1304,8 @@ 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"
+ # Disable bogus 'attempt to free a non-heap object' warning
+ flags="$flags -Wno-free-nonheap-object"
fi
if [ "$enable_lto" != "0" ]; then