From 27637494b19881c7ec602dc6c1546e188690442c Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Wed, 19 Oct 2011 17:34:44 +0100 Subject: [PATCH] ignore -Wparenthes , -Wchar-subscripts warnings (helpful with clang++) --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index d84fb1bd4..5e463723c 100644 --- a/SConstruct +++ b/SConstruct @@ -1432,7 +1432,7 @@ if not preconfigured: if env['DEBUG']: env.Append(CXXFLAGS = gcc_cxx_flags + '-O0 -fno-inline %s' % debug_flags) else: - env.Append(CXXFLAGS = gcc_cxx_flags + '-O%s -finline-functions -Wno-inline %s' % (env['OPTIMIZATION'],ndebug_flags)) + env.Append(CXXFLAGS = gcc_cxx_flags + '-O%s -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts %s' % (env['OPTIMIZATION'],ndebug_flags)) if 'python' in env['BINDINGS']: if not os.access(env['PYTHON'], os.X_OK):