Eliminate 'cast between incompatible function types' compiler warning
authorIvan Maidanski <ivmai@mail.ru>
Mon, 4 Jun 2018 20:04:17 +0000 (23:04 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 4 Jun 2018 20:04:17 +0000 (23:04 +0300)
commit0fa40a7127129321a69719dcb8b8b38bf44c1982
treeeef6abfc705119e1d3e0ef7b1ab62508ec0acdb3
parent20193940e91019398b6c557b748660700dbd66ef
Eliminate 'cast between incompatible function types' compiler warning

* cord/cordxtra.c (refill_cache): Add GC_CALLBACK; change return type
from char to void*; change argument type from refill_data* to void*;
add necessary casts to client_data and the return expression.
* cord/cordxtra.c (CORD_lf_func): Do not cast refill_cache.
* os_dep.c [MPROTECT_VDB] (GC_write_fault_handler,
GC_mprotect_dirty_init): Cast SIG_DFL, SIG_IGN and oldact.sa_handler
to SIG_HNDLR_PTR via signed_word type.
* os_dep.c [MPROTECT_VDB && !MSWIN32 && !MSWINCE]
(GC_write_fault_handler): Cast old_handler to PLAIN_HNDLR_PTR via
signed_word type.
cord/cordxtra.c
os_dep.c