From b673ac48cc523cecaaaaccb1b3dd78ea1fb216fa Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Mon, 4 Feb 2019 16:40:21 +0100 Subject: [PATCH] Fixing missing initializer in glib/giounix.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ^~~ glib/giounix.c:111:1: error: missing initializer for field ‘closure_callback’ of ‘GSourceFuncs’ {aka ‘struct _GSourceFuncs’} [-Werror=missing-field-initializers] }; ^ In file included from glib/giochannel.h:33, from glib/glib.h:54, from glib/gprintf.h:21, from glib/gstdio.h:22, from glib/giounix.c:43: glib/gmain.h:262:19: note: ‘closure_callback’ declared here GSourceFunc closure_callback; ^~~~~~~~~~~~~~~~ --- glib/giounix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glib/giounix.c b/glib/giounix.c index fe1c76170..6ba442f15 100644 --- a/glib/giounix.c +++ b/glib/giounix.c @@ -107,7 +107,8 @@ GSourceFuncs g_io_watch_funcs = { g_io_unix_prepare, g_io_unix_check, g_io_unix_dispatch, - g_io_unix_finalize + g_io_unix_finalize, + NULL, NULL }; static GIOFuncs unix_channel_funcs = {