summaryrefslogtreecommitdiff
path: root/gatchat
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2018-06-14 15:14:11 +0200
committerMarcel Holtmann <marcel@holtmann.org>2018-06-14 15:19:16 +0200
commit07fc4a8506b37723a291bdbab03ade50dc03dcbf (patch)
treec786ea840cdac2176c0c136a3d0410f2971e71ed /gatchat
parent1fe34da0af206761b10cdcd3a454009495a1ced3 (diff)
downloadofono-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.c2
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"