Fixing missing initializer in glib-unix.c

glib/glib-unix.c:314: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/glib-unix.h:33,
                 from glib/glib-unix.c:29:
glib/gmain.h:262:19: note: ‘closure_callback’ declared here
   GSourceFunc     closure_callback;
                   ^~~~~~~~~~~~~~~~
This commit is contained in:
Emmanuel Fleury 2019-02-04 15:46:24 +01:00
parent 165a922a95
commit 125a1e1f30

View File

@ -310,7 +310,7 @@ g_unix_fd_source_dispatch (GSource *source,
}
GSourceFuncs g_unix_fd_source_funcs = {
NULL, NULL, g_unix_fd_source_dispatch, NULL
NULL, NULL, g_unix_fd_source_dispatch, NULL, NULL, NULL
};
/**