summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-08-28 14:30:22 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2012-08-28 14:30:22 -0400
commitd090f4d93016022a65e253e7c1637fb954e745ce (patch)
treed9a32fe5adef463dca149526309c41832ae7b284 /src
parent5b1614de0227b727d16443eec66c2f7900b7b1e3 (diff)
downloadgem5-d090f4d93016022a65e253e7c1637fb954e745ce.tar.xz
swig: Disable unused value warning with llvm 3.1 compilers
This patch disables a warning for unused values which causes problems when compiling the swig-generated sources using recent llvm-based compilers like llvm-gcc and clang.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/SConscript10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/SConscript b/src/SConscript
index 24d31fccf..59f185c0d 100755
--- a/src/SConscript
+++ b/src/SConscript
@@ -850,15 +850,13 @@ def makeEnv(label, objsfx, strip = False, **kwargs):
swig_env = new_env.Clone()
swig_env.Append(CCFLAGS='-Werror')
if env['GCC']:
- swig_env.Append(CCFLAGS='-Wno-uninitialized')
- swig_env.Append(CCFLAGS='-Wno-sign-compare')
- swig_env.Append(CCFLAGS='-Wno-parentheses')
- swig_env.Append(CCFLAGS='-Wno-unused-label')
+ swig_env.Append(CCFLAGS=['-Wno-uninitialized', '-Wno-sign-compare',
+ '-Wno-parentheses', '-Wno-unused-label',
+ '-Wno-unused-value'])
if compareVersions(env['GCC_VERSION'], '4.6') >= 0:
swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable')
if env['CLANG']:
- swig_env.Append(CCFLAGS=['-Wno-unused-label'])
-
+ swig_env.Append(CCFLAGS=['-Wno-unused-label', '-Wno-unused-value'])
werror_env = new_env.Clone()
werror_env.Append(CCFLAGS='-Werror')