diff options
author | rubidium <rubidium@openttd.org> | 2008-05-07 21:42:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-07 21:42:17 +0000 |
commit | 874d1ecfed55409c0fbaee9f9ed51dc8dda56339 (patch) | |
tree | 61d0def36214f892284b5c8091a86fabcc3a4743 /config.lib | |
parent | 73feef0eed10fd40b677e98bacc0a54d90d0815b (diff) | |
download | openttd-874d1ecfed55409c0fbaee9f9ed51dc8dda56339.tar.xz |
(svn r12998) -Fix: -Wredundant_decls sees "friend" declarations as redundant declarations in GCC 2.95, so only use if for GCC >= 3.
Diffstat (limited to 'config.lib')
-rw-r--r-- | config.lib | 3 |
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 |