summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-04-25 18:26:08 (GMT)
committerThomas Heller <theller@ctypes.org>2006-04-25 18:26:08 (GMT)
commit4e1777de63db3ed2c397fc6838b08e921d60b93d (patch)
treedbdf7d09a98745f49287a562f5d15079aa5864be /Modules
parent1ddba60e3d084bfca4615bbd77c3c6f4ed34d8ee (diff)
downloadcpython-4e1777de63db3ed2c397fc6838b08e921d60b93d.zip
cpython-4e1777de63db3ed2c397fc6838b08e921d60b93d.tar.gz
cpython-4e1777de63db3ed2c397fc6838b08e921d60b93d.tar.bz2
Fix compiler warnings on Darwin.
Patch by Brett Canon, see https://sourceforge.net/tracker/?func=detail&atid=532156&aid=1475959&group_id=71702
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c b/Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c
index d758f8f..9337e66 100644
--- a/Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c
+++ b/Modules/_ctypes/libffi/src/powerpc/ffi_darwin.c
@@ -380,18 +380,18 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif)
extern void ffi_call_AIX(/*@out@*/ extended_cif *,
unsigned, unsigned,
/*@out@*/ unsigned *,
- void (*fn)(),
- void (*fn2)());
+ void (*fn)(void),
+ void (*fn2)(extended_cif *, unsigned *const));
extern void ffi_call_DARWIN(/*@out@*/ extended_cif *,
unsigned, unsigned,
/*@out@*/ unsigned *,
- void (*fn)(),
- void (*fn2)());
+ void (*fn)(void),
+ void (*fn2)(extended_cif *, unsigned *const));
/*@=declundef@*/
/*@=exportheader@*/
void ffi_call(/*@dependent@*/ ffi_cif *cif,
- void (*fn)(),
+ void (*fn)(void),
/*@out@*/ void *rvalue,
/*@dependent@*/ void **avalue)
{