Fix missing initializer warning in gio/gcancellable.c

gio/gcancellable.c:773:1: error: missing initializer for field ‘closure_marshal’ of ‘GSourceFuncs’ {aka ‘struct _GSourceFuncs’}
  773 | };
      | ^
In file included from glib/giochannel.h:33,
                 from glib/glib.h:54,
                 from gio/gcancellable.c:22:
glib/gmain.h:277:23: note: ‘closure_marshal’ declared here
  277 |   GSourceDummyMarshal closure_marshal; /* Really is of type GClosureMarshal */
      |                       ^~~~~~~~~~~~~~~
This commit is contained in:
Emmanuel Fleury 2020-11-16 20:07:35 +01:00
parent 058dda1b63
commit 9025969df6

View File

@ -770,6 +770,7 @@ static GSourceFuncs cancellable_source_funcs =
cancellable_source_dispatch,
NULL,
(GSourceFunc)cancellable_source_closure_callback,
NULL,
};
/**