Changeset - r16340:9b5d52924b07
[Not reviewed]
master
0 1 0
smatz - 14 years ago 2010-10-31 14:25:57
smatz@openttd.org
(svn r21062) -Codechange: append -Winit-self to compiler flags
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -1198,6 +1198,12 @@ make_compiler_cflags() {
 
			fi
 
		fi
 

	
 
		if [ $cc_version -ge 34 ]; then
 
			# Warn when a variable is used to initialise itself:
 
			# int a = a;
 
			flags="$flags -Winit-self"
 
		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
0 comments (0 inline, 0 general)