Changeset - r22496:0ee0019bc586
[Not reviewed]
master
0 1 0
frosch - 8 years ago 2016-12-22 12:59:46
frosch@openttd.org
(svn r27703) -Change [FS#6532]: [gcc] Wnarrowing and Wfree-nonheap-object do no longer trigger in gcc 4.9.2, so reenable them.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -1396,13 +1396,13 @@ make_compiler_cflags() {
 
		if [ $cc_version -eq 405 ]; then
 
			# Prevent optimisation supposing enums are in a range specified by the standard
 
			# For details, see http://gcc.gnu.org/PR43680
 
			flags="$flags -fno-tree-vrp"
 
		fi
 

	
 
		if [ $cc_version -ge 407 ]; then
 
		if [ $cc_version -eq 407 ]; then
 
			# Disable -Wnarrowing which gives many warnings, such as:
 
			# warning: narrowing conversion of '...' from 'unsigned int' to 'int' inside { } [-Wnarrowing]
 
			# They are valid according to the C++ standard, but useless.
 
			cxxflags="$cxxflags -Wno-narrowing"
 
			# Disable bogus 'attempt to free a non-heap object' warning
 
			flags="$flags -Wno-free-nonheap-object"
0 comments (0 inline, 0 general)