bug 1868: restrict the compiler version for Wstrict-overflow=5 until gcc-4.9 issues are addressed

This commit is contained in:
Tom Henderson
2014-06-06 10:11:35 -07:00
parent 67d37c298d
commit d2a10d1dcd
+2 -2
View File
@@ -31,7 +31,7 @@ tests_enabled = False
# Bug 1868: be conservative about -Wstrict-overflow for optimized builds
# on older compilers; it can generate spurious warnings.
min_cc_version_warn_strict_overflow = ('4', '8', '2')
cc_version_warn_strict_overflow = ('4', '8', '2')
# Get the information out of the NS-3 configuration file.
config_file_exists = False
@@ -330,7 +330,7 @@ def configure(conf):
if conf.check_compilation_flag('-march=native'):
env.append_value('CXXFLAGS', '-march=native')
env.append_value('CXXFLAGS', '-fstrict-overflow')
if conf.env['CC_VERSION'] >= min_cc_version_warn_strict_overflow:
if conf.env['CC_VERSION'] == cc_version_warn_strict_overflow:
env.append_value('CXXFLAGS', '-Wstrict-overflow=5')
if sys.platform == 'win32':