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;
                 ^
This commit is contained in:
Marcel Holtmann 2018-06-14 15:14:11 +02:00
parent 1fe34da0af
commit 07fc4a8506
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@
#include <string.h>
#include <alloca.h>
#pragma GCC diagnostic ignored "-Wcast-function-type"
#include <glib.h>
#include "ringbuffer.h"