aboutsummaryrefslogtreecommitdiff
path: root/Lib/python
diff options
context:
space:
mode:
authorAndrew Rogers <andrew.rogers@cantab.net>2018-11-25 04:23:18 +0000
committerAndrew Rogers <andrew.rogers@cantab.net>2018-11-25 04:23:18 +0000
commit3c090307a48b0c6a1f034357b751bc9469cc111f (patch)
tree9ce00dfabefe39c9a5fec0391a8828d26cdcfdd2 /Lib/python
parent493d96a732cda7c51fb2a6192a3441053cef8c88 (diff)
downloadswig-3c090307a48b0c6a1f034357b751bc9469cc111f.tar.gz
Fix ISOC build errors.
Diffstat (limited to 'Lib/python')
-rw-r--r--Lib/python/pyinit.swg4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/python/pyinit.swg b/Lib/python/pyinit.swg
index 6516b5159..c155185cd 100644
--- a/Lib/python/pyinit.swg
+++ b/Lib/python/pyinit.swg
@@ -332,8 +332,6 @@ SWIGEXPORT
SWIG_init(void) {
PyObject *m, *d, *md, *globals;
- (void)globals;
-
#if PY_VERSION_HEX >= 0x03000000
static struct PyModuleDef SWIG_module = {
PyModuleDef_HEAD_INIT,
@@ -386,6 +384,8 @@ SWIG_init(void) {
assert(metatype);
#endif
+ (void)globals;
+
/* Create singletons now to avoid potential deadlocks with multi-threaded usage after module initialization */
SWIG_This();
SWIG_Python_TypeCache();