1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-15 08:22:34 +01:00

(svn r16298) -Change: silence some pointless/unsolveable ICC warnings/remarks (multicharacter character literal potential unportable/autovectorised this loop)

This commit is contained in:
rubidium
2009-05-13 17:46:41 +00:00
parent 5f81ba886c
commit 5bffbcdeca

View File

@@ -1076,6 +1076,12 @@ make_cflags_and_ldflags() {
if [ "$cc_version" = "10.1" ]; then
CFLAGS="$CFLAGS -Wno-multichar"
fi
if [ "$cc_version" = "11.0" ]; then
# warning 1899: multicharacter character literal (potential portability problem) (e.g. 'FOOD')
# vec report defaults to telling where it did loop vectorisation, which is not very important
CFLAGS="$CFLAGS -vec-report=0 -wd1899"
fi
else
# Enable some things only for certain GCC versions
cc_version=`$cc_host -dumpversion | cut -c 1,3`