summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2012-12-10 23:08:06 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2012-12-10 23:08:06 +1100
commitc1cdc4cff92ca98e6424d567f15c1ba2f028bbbb (patch)
treefba8b0f30501e062cd05b9d725567150c853b50e
parentf9aa09116101f9eeb9763f8e6b9e3b78f2fc8d17 (diff)
downloadmongo-c1cdc4cff92ca98e6424d567f15c1ba2f028bbbb.tar.gz
Disable some GCC warning flags for the SWIG-generated Python code.
-rw-r--r--lang/python/setup.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/lang/python/setup.py b/lang/python/setup.py
index 96cdc50b1de..05600dd3353 100644
--- a/lang/python/setup.py
+++ b/lang/python/setup.py
@@ -13,16 +13,17 @@ from distutils.core import setup, Extension
if not 'ARCHFLAGS' in os.environ:
os.environ['ARCHFLAGS'] = ''
-# Suppress warnings building SWIG code on OS X 10.8
-extra_cflags = []
+# Suppress warnings building SWIG generated code
+extra_cflags = [
+ '-Wno-unused-value',
+]
if sys.platform == 'darwin':
kernel_version = os.uname()[2] # e.g. 12.0.0 is Mountain Lion
major_version = int(kernel_version.split('.')[0])
if major_version >= 12:
extra_cflags += [
'-Wno-self-assign',
- '-Wno-unused-value',
- '-Qunused-arguments'
+ '-Qunused-arguments',
]
dir = os.path.dirname(__file__)