Changeset - r13117:b855d02b06bd
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-09-24 21:27:19
rubidium@openttd.org
(svn r17632) -Change: enable the uninitialized variables warning (or actually undisable)
1 file changed with 0 insertions and 2 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -1068,26 +1068,24 @@ make_compiler_cflags() {
 
		fi
 
	else
 
		# Enable some things only for certain GCC versions
 
		cc_version=`$1 -dumpversion | cut -c 1,3`
 

	
 
		if [ $cc_version -lt 30 ]; then
 
			log 1 "configure: error: gcc older than 3.0 can't compile OpenTTD because of its poor template support"
 
			exit 1
 
		fi
 

	
 
		flags="$flags -Wall -Wno-multichar -Wsign-compare -Wundef"
 
		flags="$flags -Wwrite-strings -Wpointer-arith"
 
		flags="$flags -Wno-uninitialized"
 

	
 
		flags="$flags -W -Wno-unused-parameter -Wformat=2"
 
		flags="$flags -Wredundant-decls"
 

	
 
		if [ $enable_assert -eq 0 ]; then
 
			# Do not warn about unused variables when building without asserts
 
			flags="$flags -Wno-unused-variable"
 
		fi
 

	
 
		if [ $cc_version -ge 40 ]; then
 
			# GCC 4.0+ complains about that we break strict-aliasing.
 
			#  On most places we don't see how to fix it, and it doesn't
 
			#  break anything. So disable strict-aliasing to make the
0 comments (0 inline, 0 general)