From 80f70fbc34d585a1b87619884d39b11b03a6a13c Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 22 Aug 2015 20:43:04 +0000 Subject: [PATCH] Remove SConf test check_compiler_template_parentheses_warning Test check_compiler_template_parentheses_warning probes for a bug in gcc-4.6. Upstream fixed the bug in gcc-4.7. Using gcc-4.6 is no longer supported, so remove the test for the bug. --- SConstruct | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/SConstruct b/SConstruct index f397e677c..b066a10d8 100644 --- a/SConstruct +++ b/SConstruct @@ -492,18 +492,6 @@ help:assume C++ compiler works raise SCons.Errors.StopError("C++ compiler works, but C++ linker does not work.") raise SCons.Errors.StopError("C++ compiler does not work.") @_custom_test - def check_compiler_template_parentheses_warning(self,context): - # Test for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51064 - text = ''' -template -struct T {}; -''' - main = 'T<3> t;(void)t;' - if self.Cxx11Compile(context, text=text, main=main, msg='whether C++ compiler accepts parenthesized template computations', testflags={'CXXFLAGS' : ['-Wparentheses']}) or \ - self.Cxx11Compile(context, text=text, main=main, msg='whether C++ compiler understands -Wno-parentheses', successflags={'CXXFLAGS' : ['-Wno-parentheses']}): - return - raise SCons.Errors.StopError("C++ compiler errors on template computed expressions, even with -Wno-parentheses.") - @_custom_test def check_compiler_missing_field_initializers(self,context): f = {'CXXFLAGS' : ['-Wmissing-field-initializers']} text = 'struct A{int a;};'