mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Supply function pointer prototype to avoid compiler warnings
This commit is contained in:
parent
f898f19b91
commit
1e0df026d9
1 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue