Skip to content

Commit 65e4d5a

Browse files
author
thomas.heller
committed
Fix compiler warnings on Darwin.
Patch by Brett Canon, see https://sourceforge.net/tracker/?func=detail&atid=532156&aid=1475959&group_id=71702 git-svn-id: http://svn.python.org/projects/python/trunk@45717 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent a3c5fa6 commit 65e4d5a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,18 +380,18 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif)
380380
extern void ffi_call_AIX(/*@out@*/ extended_cif *,
381381
unsigned, unsigned,
382382
/*@out@*/ unsigned *,
383-
void (*fn)(),
384-
void (*fn2)());
383+
void (*fn)(void),
384+
void (*fn2)(extended_cif *, unsigned *const));
385385
extern void ffi_call_DARWIN(/*@out@*/ extended_cif *,
386386
unsigned, unsigned,
387387
/*@out@*/ unsigned *,
388-
void (*fn)(),
389-
void (*fn2)());
388+
void (*fn)(void),
389+
void (*fn2)(extended_cif *, unsigned *const));
390390
/*@=declundef@*/
391391
/*@=exportheader@*/
392392

393393
void ffi_call(/*@dependent@*/ ffi_cif *cif,
394-
void (*fn)(),
394+
void (*fn)(void),
395395
/*@out@*/ void *rvalue,
396396
/*@dependent@*/ void **avalue)
397397
{

0 commit comments

Comments
 (0)