summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2007-12-23 21:02:40 +0000
committersmatz <smatz@openttd.org>2007-12-23 21:02:40 +0000
commit17d1b522bc1b38390a3872820dbc812557ac1d71 (patch)
treeb2ae58ad998de5ce2917ae2a850ad83eaa15a846 /config.lib
parent22f79df32830d173827038222e509721c1e5ac18 (diff)
downloadopenttd-17d1b522bc1b38390a3872820dbc812557ac1d71.tar.xz
(svn r11689) -Fix: compilation error and most of warnings for gcc 4.3
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 115507342..5785c5308 100644
--- a/config.lib
+++ b/config.lib
@@ -885,6 +885,12 @@ make_cflags_and_ldflags() {
CFLAGS="$CFLAGS -fno-strict-overflow"
fi
+ # GCC 4.3+ gives a warning about empty body of
+ # loops and conditions
+ if [ $cc_version -ge 43 ]; then
+ CFLAGS="$CFLAGS -Wno-empty-body"
+ fi
+
if [ "$os" != "CYGWIN" ] && [ "$os" != "FREEBSD" ] && [ "$os" != "OPENBSD" ] && [ "$os" != "MINGW" ] && [ "$os" != "MORPHOS" ] && [ "$os" != "OSX" ] && [ "$os" != "WINCE" ] && [ "$os" != "PSP" ] && [ "$os" != "OS2" ]; then
LIBS="$LIBS -lpthread"
LIBS="$LIBS -lrt"