Mercurial > hg > openttd
changeset 6189:4b0b5102214d draft
(svn r8968) -Fix (win32): silent g++ 4.0+ warnings about breaking strict-aliasing
author | truelight <truelight@openttd.org> |
---|---|
date | Fri, 02 Mar 2007 00:45:08 +0000 |
parents | 71fb979dde1b |
children | f9ef22413f22 |
files | config.lib |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/config.lib +++ b/config.lib @@ -671,6 +671,9 @@ if [ "$os" = "CYGWIN" ] || [ "$os" = "MINGW" ]; then LDFLAGS="$LDFLAGS -Wl,--subsystem,windows" LIBS="$LIBS -lws2_32 -lwinmm -lgdi32 -ldxguid -lole32" + if [ $cc_version -ge 40 ]; then + CFLAGS="$CFLAGS -fno-strict-aliasing" + fi fi if [ "$os" != "CYGWIN" ] && [ "$os" != "FREEBSD" ] && [ "$os" != "MINGW" ] && [ "$os" != "MORPHOS" ] && [ "$os" != "OSX" ] && [ "$os" != "WINCE" ] && [ "$os" != "PSP" ]; then