Changeset - r15166:8d3e7ff53882
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2010-05-13 05:29:25
smatz@openttd.org
(svn r19805) -Codechange: disable warnings about unused but set variables when building with asserts disabled
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -1163,6 +1163,11 @@ make_compiler_cflags() {
 
		if [ $enable_assert -eq 0 ]; then
 
			# Do not warn about unused variables when building without asserts
 
			flags="$flags -Wno-unused-variable"
 
			if [ $cc_version -ge 46 ]; then
 
				# GCC 4.6 gives more warnings, disable them too
 
				flags="$flags -Wno-unused-but-set-variable"
 
				flags="$flags -Wno-unused-but-set-parameter"
 
			fi
 
		fi
 

	
 
		if [ $cc_version -ge 40 ]; then
0 comments (0 inline, 0 general)