diff options
author | smatz <smatz@openttd.org> | 2007-12-23 21:02:40 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2007-12-23 21:02:40 +0000 |
commit | 17d1b522bc1b38390a3872820dbc812557ac1d71 (patch) | |
tree | b2ae58ad998de5ce2917ae2a850ad83eaa15a846 /config.lib | |
parent | 22f79df32830d173827038222e509721c1e5ac18 (diff) | |
download | openttd-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.lib | 6 |
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" |