mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-33012: Fix more invalid function cast warnings with gcc 8. (GH-10751)
Fix warnings with gcc 8 for wrapperfunc <-> wrapperfunc_kwds casts.
This commit is contained in:
parent
c57e6e2e52
commit
1c607155c9
2 changed files with 3 additions and 3 deletions
|
@ -346,7 +346,7 @@ wrapperdescr_raw_call(PyWrapperDescrObject *descr, PyObject *self,
|
|||
wrapperfunc wrapper = descr->d_base->wrapper;
|
||||
|
||||
if (descr->d_base->flags & PyWrapperFlag_KEYWORDS) {
|
||||
wrapperfunc_kwds wk = (wrapperfunc_kwds)wrapper;
|
||||
wrapperfunc_kwds wk = (wrapperfunc_kwds)(void(*)(void))wrapper;
|
||||
return (*wk)(self, args, descr->d_wrapped, kwds);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue