From b0df98a1c2745b20325ae1d70413601dda9b46dd Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 2 Mar 2019 18:20:30 +0100 Subject: Fix -Werror=cast-function-type Bump glib-2 required version to 2.58: G_SOURCE_FUNC https://gitlab.gnome.org/GNOME/glib/commit/039fa6897bb4c5cd30caec8ee3add1a4ef612f76 Build & install:i export CC=gcci export CFLAGS=-Werror=cast-function-type ./autogen.sh --prefix=/usr make clean make sudo make install --- src/core/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core/main.c') diff --git a/src/core/main.c b/src/core/main.c index 31958d22..6f6170d6 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -385,7 +385,9 @@ sigterm_handler (int signum) } static gboolean -on_sigterm (void) +on_sigterm (GIOChannel *source, + GIOCondition condition, + gpointer user_data) { meta_quit (META_EXIT_SUCCESS); return FALSE; @@ -437,7 +439,7 @@ main (int argc, char **argv) channel = g_io_channel_unix_new (sigterm_pipe_fds[0]); g_io_channel_set_flags (channel, G_IO_FLAG_NONBLOCK, NULL); - g_io_add_watch (channel, G_IO_IN, (GIOFunc) on_sigterm, NULL); + g_io_add_watch (channel, G_IO_IN, on_sigterm, NULL); g_io_channel_set_close_on_unref (channel, TRUE); g_io_channel_unref (channel); -- cgit v1.2.1