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.
This commit is contained in:
parent
5b1614de02
commit
d090f4d930
1 changed files with 4 additions and 6 deletions
|
@ -850,15 +850,13 @@ def makeEnv(label, objsfx, strip = False, **kwargs):
|
||||||
swig_env = new_env.Clone()
|
swig_env = new_env.Clone()
|
||||||
swig_env.Append(CCFLAGS='-Werror')
|
swig_env.Append(CCFLAGS='-Werror')
|
||||||
if env['GCC']:
|
if env['GCC']:
|
||||||
swig_env.Append(CCFLAGS='-Wno-uninitialized')
|
swig_env.Append(CCFLAGS=['-Wno-uninitialized', '-Wno-sign-compare',
|
||||||
swig_env.Append(CCFLAGS='-Wno-sign-compare')
|
'-Wno-parentheses', '-Wno-unused-label',
|
||||||
swig_env.Append(CCFLAGS='-Wno-parentheses')
|
'-Wno-unused-value'])
|
||||||
swig_env.Append(CCFLAGS='-Wno-unused-label')
|
|
||||||
if compareVersions(env['GCC_VERSION'], '4.6') >= 0:
|
if compareVersions(env['GCC_VERSION'], '4.6') >= 0:
|
||||||
swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable')
|
swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable')
|
||||||
if env['CLANG']:
|
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 = new_env.Clone()
|
||||||
werror_env.Append(CCFLAGS='-Werror')
|
werror_env.Append(CCFLAGS='-Werror')
|
||||||
|
|
Loading…
Reference in a new issue