From ac3cf05f1ac0f8b22edd044e6cd3e88e0992f8cd Mon Sep 17 00:00:00 2001 From: Nik Bougalis Date: Thu, 24 Jul 2014 03:41:30 -0700 Subject: [PATCH] Properly order warning suppression flags during compile --- SConstruct | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/SConstruct b/SConstruct index f3bbc8564..e8c583599 100644 --- a/SConstruct +++ b/SConstruct @@ -247,13 +247,13 @@ def config_env(toolchain, variant, env): env.ParseConfig('pkg-config --static --cflags --libs openssl') env.ParseConfig('pkg-config --static --cflags --libs protobuf') - env.Prepend(CCFLAGS=['-Wall']) + env.Prepend(CFLAGS=['-Wall']) + env.Prepend(CXXFLAGS=['-Wall']) env.Append(CCFLAGS=[ '-Wno-sign-compare', '-Wno-char-subscripts', - '-Wno-format', - '-Wno-deprecated-register' + '-Wno-format' ]) env.Append(CXXFLAGS=[ @@ -334,7 +334,10 @@ def config_env(toolchain, variant, env): # Add '-Wshorten-64-to-32' env.Append(CCFLAGS=[]) # C++ only - env.Append(CXXFLAGS=['-Wno-mismatched-tags']) + env.Append(CXXFLAGS=[ + '-Wno-mismatched-tags', + '-Wno-deprecated-register' + ]) elif toolchain == 'gcc': if 'GNU_CC' in env and 'GNU_CXX' in env and 'GNU_LINK' in env: