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

Skip to content

Commit d7bd7a5

Browse files
committed
Silence compiler warnings for strict function prototype declarations.
1 parent 95f34ab commit d7bd7a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_ctypes/libffi_osx/x86/x86-ffi64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ffi_call_unix64(
4646
unsigned long bytes,
4747
unsigned flags,
4848
void* raddr,
49-
void (*fnaddr)(),
49+
void (*fnaddr)(void),
5050
unsigned ssecount);
5151

5252
/* All reference to register classes here is identical to the code in
@@ -429,7 +429,7 @@ ffi_prep_cif_machdep(
429429
void
430430
ffi_call(
431431
ffi_cif* cif,
432-
void (*fn)(),
432+
void (*fn)(void),
433433
void* rvalue,
434434
void** avalue)
435435
{

0 commit comments

Comments
 (0)