Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 915d777

Browse files
author
Thomas Heller
committed
Try to avoid many of the compiler warnings when compiling libffi by
using a proper function prototype.
1 parent ab906a5 commit 915d777

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ typedef union {
188188
} ffi_raw;
189189

190190
void ffi_raw_call (/*@dependent@*/ ffi_cif *cif,
191-
void (*fn)(),
191+
void (*fn)(void),
192192
/*@out@*/ void *rvalue,
193193
/*@dependent@*/ ffi_raw *avalue);
194194

@@ -201,7 +201,7 @@ size_t ffi_raw_size (ffi_cif *cif);
201201
/* longs and doubles are followed by an empty 64-bit word. */
202202

203203
void ffi_java_raw_call (/*@dependent@*/ ffi_cif *cif,
204-
void (*fn)(),
204+
void (*fn)(void),
205205
/*@out@*/ void *rvalue,
206206
/*@dependent@*/ ffi_raw *avalue);
207207

@@ -270,7 +270,7 @@ ffi_status ffi_prep_cif(/*@out@*/ /*@partial@*/ ffi_cif *cif,
270270
/*@dependent@*/ ffi_type **atypes);
271271

272272
void ffi_call(/*@dependent@*/ ffi_cif *cif,
273-
void (*fn)(),
273+
void (*fn)(void),
274274
/*@out@*/ void *rvalue,
275275
/*@dependent@*/ void **avalue);
276276

0 commit comments

Comments
 (0)