Supply function pointer prototype to avoid compiler warnings

This commit is contained in:
rfm 2024-08-08 14:18:16 +01:00
parent f898f19b91
commit 1e0df026d9

View file

@ -445,8 +445,8 @@ typedef struct {
unsigned *cursor;
BOOL mutable;
BOOL didUnique;
void (*debImp)();
unsigned int (*deiImp)();
void (*debImp)(id, SEL, void*, unsigned, unsigned*);
unsigned int (*deiImp)(id, SEL, unsigned*);
GSIArray_t array;
} _NSDeserializerInfo;
@ -471,8 +471,10 @@ initDeserializerInfo(_NSDeserializerInfo* info, NSData *d, unsigned *c, BOOL m)
info->data = d;
info->cursor = c;
info->mutable = m;
info->debImp = (void (*)())[d methodForSelector: debSel];
info->deiImp = (unsigned int (*)())[d methodForSelector: deiSel];
info->debImp = (void (*)(id, SEL, void*, unsigned, unsigned*))
[d methodForSelector: debSel];
info->deiImp = (unsigned int (*)(id, SEL, unsigned*))
[d methodForSelector: deiSel];
(*info->debImp)(d, debSel, &u, 1, c);
if (u == 0 || u == 1)
{