summaryrefslogtreecommitdiff
path: root/cffi
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2020-04-12 10:08:27 +0200
committerArmin Rigo <arigo@tunes.org>2020-04-12 10:08:27 +0200
commit73bddb1cdea031159593e5c62b9d9df242cbd657 (patch)
treef2e2cb221f05f559a4b2fd8e1a786561fa0eefbf /cffi
parent39738b5be335e12afedbf39c5ef3c14ed1d50d35 (diff)
downloadcffi-73bddb1cdea031159593e5c62b9d9df242cbd657.tar.gz
Fix a warning (or an error, with -Werror) on pypy3
Diffstat (limited to 'cffi')
-rw-r--r--cffi/_embedding.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cffi/_embedding.h b/cffi/_embedding.h
index 34a4a66..e49c290 100644
--- a/cffi/_embedding.h
+++ b/cffi/_embedding.h
@@ -361,11 +361,11 @@ PyMODINIT_FUNC _CFFI_PYTHON_STARTUP_FUNC(const void *[]); /* forward */
static struct _cffi_pypy_init_s {
const char *name;
- void (*func)(const void *[]);
+ void *func; /* function pointer */
const char *code;
} _cffi_pypy_init = {
_CFFI_MODULE_NAME,
- (void(*)(const void *[]))_CFFI_PYTHON_STARTUP_FUNC,
+ _CFFI_PYTHON_STARTUP_FUNC,
_CFFI_PYTHON_STARTUP_CODE,
};