mirror of https://github.com/OpenTTD/OpenTTD
(svn r13609) -Codechange: silence warnings about unused variables for gcc2 builds without asserts
parent
b4ef380c49
commit
a2b0b13c6f
|
@ -931,6 +931,12 @@ make_cflags_and_ldflags() {
|
||||||
# Make sure we mark GCC 2.95 flag for Makefile.src.in, as we
|
# Make sure we mark GCC 2.95 flag for Makefile.src.in, as we
|
||||||
# need a lovely hack there to make it compile correctly.
|
# need a lovely hack there to make it compile correctly.
|
||||||
gcc295="1"
|
gcc295="1"
|
||||||
|
|
||||||
|
# Disable warnings about unused variables when
|
||||||
|
# compiling with asserts disabled
|
||||||
|
if [ $enable_assert -eq 0 ]; then
|
||||||
|
CFLAGS="$CFLAGS -Wno-unused"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $cc_version -ge 30 ]; then
|
if [ $cc_version -ge 30 ]; then
|
||||||
|
|
Loading…
Reference in New Issue