]> granicus.if.org Git - python/commitdiff
Try to avoid many of the compiler warnings when compiling libffi by
authorThomas Heller <theller@ctypes.org>
Tue, 14 Mar 2006 20:52:24 +0000 (20:52 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 14 Mar 2006 20:52:24 +0000 (20:52 +0000)
using a proper function prototype.

Modules/_ctypes/libffi/include/ffi.h.in

index 426004586894984b43db6728f7a8e62084a83a74..5ddda79018b132f0647f47f900800fff7770e6ac 100644 (file)
@@ -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);