Skip to content

Commit 77000bb

Browse files
authored
bpo-33012: Fix more invalid function cast warnings with gcc 8. (GH-10751) (GH-10796)
Fix warnings with gcc 8 for wrapperfunc <-> wrapperfunc_kwds casts. (cherry picked from commit 1c60715)
1 parent e1b2103 commit 77000bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/typeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6596,7 +6596,7 @@ static slotdef slotdefs[] = {
65966596
"__repr__($self, /)\n--\n\nReturn repr(self)."),
65976597
TPSLOT("__hash__", tp_hash, slot_tp_hash, wrap_hashfunc,
65986598
"__hash__($self, /)\n--\n\nReturn hash(self)."),
6599-
FLSLOT("__call__", tp_call, slot_tp_call, (wrapperfunc)wrap_call,
6599+
FLSLOT("__call__", tp_call, slot_tp_call, (wrapperfunc)(void(*)(void))wrap_call,
66006600
"__call__($self, /, *args, **kwargs)\n--\n\nCall self as a function.",
66016601
PyWrapperFlag_KEYWORDS),
66026602
TPSLOT("__str__", tp_str, slot_tp_str, wrap_unaryfunc,
@@ -6632,7 +6632,7 @@ static slotdef slotdefs[] = {
66326632
TPSLOT("__delete__", tp_descr_set, slot_tp_descr_set,
66336633
wrap_descr_delete,
66346634
"__delete__($self, instance, /)\n--\n\nDelete an attribute of instance."),
6635-
FLSLOT("__init__", tp_init, slot_tp_init, (wrapperfunc)wrap_init,
6635+
FLSLOT("__init__", tp_init, slot_tp_init, (wrapperfunc)(void(*)(void))wrap_init,
66366636
"__init__($self, /, *args, **kwargs)\n--\n\n"
66376637
"Initialize self. See help(type(self)) for accurate signature.",
66386638
PyWrapperFlag_KEYWORDS),

0 commit comments

Comments
 (0)