From fdb965f5c17d8866a63c206e1975460544d8eda9 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Tue, 10 Jun 2014 17:44:39 -0400 Subject: scons: Bump the compiler version to gcc 4.6 and clang 3.0 This patch bumps the supported version of gcc from 4.4 to 4.6, and clang from 2.9 to 3.0. This enables, amongst other things, range-based for loops, lambda expressions, etc. The STL implementation shipping with 4.6 also has a full functional implementation of unique_ptr and shared_ptr. --- src/SConscript | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/SConscript b/src/SConscript index 287c388ba..f5b082819 100755 --- a/src/SConscript +++ b/src/SConscript @@ -925,10 +925,8 @@ def makeEnv(env, label, objsfx, strip = False, **kwargs): # warnings about uninitialized variables and missing field # initializers. swig_env.Append(CCFLAGS=['-Wno-uninitialized', - '-Wno-missing-field-initializers']) - - if compareVersions(env['GCC_VERSION'], '4.6') >= 0: - swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable') + '-Wno-missing-field-initializers', + '-Wno-unused-but-set-variable']) # If gcc supports it, also warn for deletion of derived # classes with non-virtual desctructors. For gcc >= 4.7 we -- cgit v1.2.3