diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2018-06-14 15:14:11 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2018-06-14 15:19:16 +0200 |
commit | 07fc4a8506b37723a291bdbab03ade50dc03dcbf (patch) | |
tree | c786ea840cdac2176c0c136a3d0410f2971e71ed /gatchat | |
parent | 1fe34da0af206761b10cdcd3a454009495a1ced3 (diff) | |
download | ofono-07fc4a8506b37723a291bdbab03ade50dc03dcbf.tar.gz |
gatchat: Use pragma to mask GFunc casting warning
gatchat/gatmux.c: In function ‘watch_dispatch’:
gatchat/gatmux.c:454:17: error: cast between incompatible function types from ‘GSourceFunc’ {aka ‘int (*)(void *)’} to ‘gboolean (*)(GIOChannel *, GIOCondition, void *)’ {aka ‘int (*)(struct _GIOChannel *, enum <anonymous>, void *)’} [-Werror=cast-function-type]
GIOFunc func = (GIOFunc) callback;
^
Diffstat (limited to 'gatchat')
-rw-r--r-- | gatchat/gatmux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gatchat/gatmux.c b/gatchat/gatmux.c index d492edb5..5867b37e 100644 --- a/gatchat/gatmux.c +++ b/gatchat/gatmux.c @@ -30,6 +30,8 @@ #include <string.h> #include <alloca.h> +#pragma GCC diagnostic ignored "-Wcast-function-type" + #include <glib.h> #include "ringbuffer.h" |