[glib: 7/8] Fix missing initializer warning in gio/gcancellable.c




commit 9025969df6c6c83cc0dc4c042e3bc82818403bf2
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Mon Nov 16 20:07:35 2020 +0100

    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 */
          |                       ^~~~~~~~~~~~~~~

 gio/gcancellable.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gio/gcancellable.c b/gio/gcancellable.c
index 00df6998d..a084282ec 100644
--- a/gio/gcancellable.c
+++ b/gio/gcancellable.c
@@ -770,6 +770,7 @@ static GSourceFuncs cancellable_source_funcs =
   cancellable_source_dispatch,
   NULL,
   (GSourceFunc)cancellable_source_closure_callback,
+  NULL,
 };
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]