Changeset - r9137:e7a782e8be34
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-05-07 21:42:17
rubidium@openttd.org
(svn r12998) -Fix: -Wredundant_decls sees "friend" declarations as redundant declarations in GCC 2.95, so only use if for GCC >= 3.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -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
0 comments (0 inline, 0 general)