[pypy-commit] cffi default: Fix a warning for PyPy3
arigo
pypy.commits at gmail.com
Wed Nov 9 10:50:22 EST 2016
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r2808:0ecb431b2b94
Date: 2016-11-09 16:21 +0100
http://bitbucket.org/cffi/cffi/changeset/0ecb431b2b94/
Log: Fix a warning for PyPy3
diff --git a/cffi/_embedding.h b/cffi/_embedding.h
--- a/cffi/_embedding.h
+++ b/cffi/_embedding.h
@@ -358,7 +358,7 @@
/********** PyPy-specific section **********/
-PyMODINIT_FUNC _CFFI_PYTHON_STARTUP_FUNC(const void *[]); /* forward */
+void _CFFI_PYTHON_STARTUP_FUNC(const void *[]); /* forward */
static struct _cffi_pypy_init_s {
const char *name;
diff --git a/cffi/recompiler.py b/cffi/recompiler.py
--- a/cffi/recompiler.py
+++ b/cffi/recompiler.py
@@ -392,7 +392,7 @@
#
# the init function
prnt('#ifdef PYPY_VERSION')
- prnt('PyMODINIT_FUNC')
+ prnt('void')
prnt('_cffi_pypyinit_%s(const void *p[])' % (base_module_name,))
prnt('{')
if self._num_externpy:
More information about the pypy-commit
mailing list