[glib: 1/11] Fix missing initializer warning in gio/gtask.c




commit f885d80ea371819a53a11b16f267874ad1925a3e
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Tue Nov 17 11:31:25 2020 +0100

    Fix missing initializer warning in gio/gtask.c
    
    gio/gtask.c:2153:1: error: missing initializer for field ‘closure_callback’ of ‘GSourceFuncs’ {aka 
‘struct _GSourceFuncs’}
     2153 | };
          | ^

 gio/gtask.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gio/gtask.c b/gio/gtask.c
index 3540e6553..2b4720de8 100644
--- a/gio/gtask.c
+++ b/gio/gtask.c
@@ -2162,7 +2162,9 @@ GSourceFuncs trivial_source_funcs = {
   NULL, /* prepare */
   NULL, /* check */
   trivial_source_dispatch,
-  NULL
+  NULL, /* finalize */
+  NULL, /* closure */
+  NULL  /* marshal */
 };
 
 static void


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