summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-06-22 18:44:28 +0000
committersmatz <smatz@openttd.org>2008-06-22 18:44:28 +0000
commita2b0b13c6f077c53b65001d31de2691da2168f43 (patch)
tree5b911277136966635683ca4a21892a82c506d8a4 /config.lib
parentb4ef380c49c2dfc78c7bd25a8ebc15d7a27b7243 (diff)
downloadopenttd-a2b0b13c6f077c53b65001d31de2691da2168f43.tar.xz
(svn r13609) -Codechange: silence warnings about unused variables for gcc2 builds without asserts
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.lib b/config.lib
index 81a80fce9..e3cb0180b 100644
--- a/config.lib
+++ b/config.lib
@@ -931,6 +931,12 @@ make_cflags_and_ldflags() {
# Make sure we mark GCC 2.95 flag for Makefile.src.in, as we
# need a lovely hack there to make it compile correctly.
gcc295="1"
+
+ # Disable warnings about unused variables when
+ # compiling with asserts disabled
+ if [ $enable_assert -eq 0 ]; then
+ CFLAGS="$CFLAGS -Wno-unused"
+ fi
fi
if [ $cc_version -ge 30 ]; then