From 450bf40d4da7a4959c248699ff9063cc866ba6a9 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 23 Jul 2012 11:41:08 -0700 Subject: [PATCH] suppress strict-aliasing warnings with older gcc and newer boost - refs #1330 --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 60c68a83b..2b0f716e7 100644 --- a/SConstruct +++ b/SConstruct @@ -1526,7 +1526,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 -Wno-parentheses -Wno-char-subscripts %s' % (env['OPTIMIZATION'],ndebug_flags)) + env.Append(CXXFLAGS = gcc_cxx_flags + '-O%s -fno-strict-aliasing -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts %s' % (env['OPTIMIZATION'],ndebug_flags)) if env['DEBUG_UNDEFINED']: env.Append(CXXFLAGS = '-fcatch-undefined-behavior -ftrapv -fwrapv')