summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-07 21:42:17 +0000
committerrubidium <rubidium@openttd.org>2008-05-07 21:42:17 +0000
commit5e1516e48669dc7857e4adbbeecc6b67cbfdae43 (patch)
tree61d0def36214f892284b5c8091a86fabcc3a4743
parentc990d97291cc8f4b63eebe3a76d620f571234cc5 (diff)
downloadopenttd-5e1516e48669dc7857e4adbbeecc6b67cbfdae43.tar.xz
(svn r12998) -Fix: -Wredundant_decls sees "friend" declarations as redundant declarations in GCC 2.95, so only use if for GCC >= 3.
-rw-r--r--config.lib3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.lib b/config.lib
index e3a140456..741c399f5 100644
--- a/config.lib
+++ b/config.lib
@@ -921,7 +921,7 @@ make_cflags_and_ldflags() {
if [ $cc_version -ge 29 ]; then
CFLAGS="$CFLAGS -Wall -Wno-multichar -Wsign-compare -Wundef"
CFLAGS="$CFLAGS -Wwrite-strings -Wpointer-arith"
- CFLAGS="$CFLAGS -Wno-uninitialized -Wredundant-decls"
+ CFLAGS="$CFLAGS -Wno-uninitialized"
CC_CFLAGS="$CC_CFLAGS -Wstrict-prototypes"
fi
@@ -935,6 +935,7 @@ make_cflags_and_ldflags() {
if [ $cc_version -ge 30 ]; then
CFLAGS="$CFLAGS -W -Wno-unused-parameter -Wformat=2"
+ CFLAGS="$CFLAGS -Wredundant-decls"
fi
if [ $cc_version -ge 34 ]; then