summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-03-14 20:52:24 (GMT)
committerThomas Heller <theller@ctypes.org>2006-03-14 20:52:24 (GMT)
commit915d7773e297326cb7ce3ad0ff97b35fe95bafee (patch)
tree9e7df1e30d4e660cd1ea56adc6fc0c7da8121c2e /Modules
parentab906a562bb0ab4de99e76df16f227386438ace6 (diff)
downloadcpython-915d7773e297326cb7ce3ad0ff97b35fe95bafee.zip
cpython-915d7773e297326cb7ce3ad0ff97b35fe95bafee.tar.gz
cpython-915d7773e297326cb7ce3ad0ff97b35fe95bafee.tar.bz2
Try to avoid many of the compiler warnings when compiling libffi by
using a proper function prototype.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/libffi/include/ffi.h.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_ctypes/libffi/include/ffi.h.in b/Modules/_ctypes/libffi/include/ffi.h.in
index 4260045..5ddda79 100644
--- a/Modules/_ctypes/libffi/include/ffi.h.in
+++ b/Modules/_ctypes/libffi/include/ffi.h.in
@@ -188,7 +188,7 @@ typedef union {
} ffi_raw;
void ffi_raw_call (/*@dependent@*/ ffi_cif *cif,
- void (*fn)(),
+ void (*fn)(void),
/*@out@*/ void *rvalue,
/*@dependent@*/ ffi_raw *avalue);
@@ -201,7 +201,7 @@ size_t ffi_raw_size (ffi_cif *cif);
/* longs and doubles are followed by an empty 64-bit word. */
void ffi_java_raw_call (/*@dependent@*/ ffi_cif *cif,
- void (*fn)(),
+ void (*fn)(void),
/*@out@*/ void *rvalue,
/*@dependent@*/ ffi_raw *avalue);
@@ -270,7 +270,7 @@ ffi_status ffi_prep_cif(/*@out@*/ /*@partial@*/ ffi_cif *cif,
/*@dependent@*/ ffi_type **atypes);
void ffi_call(/*@dependent@*/ ffi_cif *cif,
- void (*fn)(),
+ void (*fn)(void),
/*@out@*/ void *rvalue,
/*@dependent@*/ void **avalue);