From c3c6b4c905abc40d7c9c2ca8fad5252cb1057301 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 28 May 2018 11:28:57 +0300 Subject: [PATCH] shared/io-ell: Fix compiler error with GCC 8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following error: src/shared/io-ell.c: In function ‘io_set_disconnect_handler’: src/shared/io-ell.c:117:7: error: cast between incompatible function types from ‘io_callback_func_t’ {aka ‘_Bool (*)(struct io *, void *)’} to ‘void (*)(struct l_io *, void *)’ [-Werror=cast-function-type] (l_io_disconnect_cb_t) callback, ^ --- src/shared/io-ell.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shared/io-ell.c b/src/shared/io-ell.c index 3701f4398..6748982c7 100644 --- a/src/shared/io-ell.c +++ b/src/shared/io-ell.c @@ -113,8 +113,7 @@ bool io_set_disconnect_handler(struct io *io, io_callback_func_t callback, if (!io || !io->l_io) return false; - return l_io_set_disconnect_handler(io->l_io, - (l_io_disconnect_cb_t) callback, + return l_io_set_disconnect_handler(io->l_io, (void *) callback, user_data, destroy); } -- 2.47.3