Re: [Spice-devel] [PATCH spice-server v2] event-loop: Avoid possible compiler warning

2018-05-10 Thread Jonathon Jongsma
On Thu, 2018-05-10 at 17:49 +0100, Frediano Ziglio wrote: > With GCC 8.0.1 (Fedora 28), cast to different function pointer > can lead to warnings, like: > > event-loop.c: In function ‘watch_update_mask’: > event-loop.c:146:42: error: cast between incompatible function > types from ‘gboolean (*

[Spice-devel] [PATCH spice-server v2] event-loop: Avoid possible compiler warning

2018-05-10 Thread Frediano Ziglio
With GCC 8.0.1 (Fedora 28), cast to different function pointer can lead to warnings, like: event-loop.c: In function ‘watch_update_mask’: event-loop.c:146:42: error: cast between incompatible function types from ‘gboolean (*)(GIOChannel *, GIOCondition, void *)’ {aka ‘int (*)(struct _GIOCha