Fixing missing initializer in glib/giounix.c

^~~
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;
                   ^~~~~~~~~~~~~~~~
This commit is contained in:
Emmanuel Fleury 2019-02-04 16:40:21 +01:00
parent 5dd02cc6f5
commit b673ac48cc

View File

@ -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 = {