[glib: 5/7] Fix missing initializer warnings in gio/gsocket.c




commit 0705dbd17b87664ac5394ef27a59cffc06e27f2e
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Tue Nov 17 00:11:43 2020 +0100

    Fix missing initializer warnings in gio/gsocket.c
    
    gio/gsocket.c:3761:1: error: missing initializer for field ‘closure_callback’ of ‘GSourceFuncs’ {aka 
‘struct _GSourceFuncs’}
     3761 | };
          | ^
    gio/gsocket.c:4071:1: error: missing initializer for field ‘closure_marshal’ of ‘GSourceFuncs’ {aka 
‘struct _GSourceFuncs’}
     4071 | };
          | ^

 gio/gsocket.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gio/gsocket.c b/gio/gsocket.c
index 69fc72825..fc191646b 100644
--- a/gio/gsocket.c
+++ b/gio/gsocket.c
@@ -3767,7 +3767,9 @@ static GSourceFuncs broken_funcs =
   NULL,
   NULL,
   broken_dispatch,
-  NULL
+  NULL,
+  NULL,
+  NULL,
 };
 
 #ifdef G_OS_WIN32
@@ -4082,6 +4084,7 @@ static GSourceFuncs socket_source_funcs =
   socket_source_dispatch,
   socket_source_finalize,
   (GSourceFunc)socket_source_closure_callback,
+  NULL,
 };
 
 static GSource *


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