[glib: 6/8] Fix missing initializer warning in gio/gcontextspecificgroup.c:g_context_specific_source_new()
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 6/8] Fix missing initializer warning in gio/gcontextspecificgroup.c:g_context_specific_source_new()
- Date: Thu, 17 Dec 2020 08:53:11 +0000 (UTC)
commit 058dda1b6318629c6bb816367c2a3bfd784621bb
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Mon Nov 16 19:54:17 2020 +0100
Fix missing initializer warning in gio/gcontextspecificgroup.c:g_context_specific_source_new()
gio/gcontextspecificgroup.c: In function ‘g_context_specific_source_new’:
gio/gcontextspecificgroup.c:77:3: error: missing initializer for field ‘closure_callback’ of
‘GSourceFuncs’ {aka ‘struct _GSourceFuncs’}
77 | };
| ^
In file included from glib/giochannel.h:33,
from glib/glib.h:54,
from gobject/gbinding.h:28,
from glib/glib-object.h:22,
from gio/gcontextspecificgroup.h:23,
from gio/gcontextspecificgroup.c:22:
glib/gmain.h:276:19: note: ‘closure_callback’ declared here
276 | GSourceFunc closure_callback;
| ^~~~~~~~~~~~~~~~
gio/gcontextspecificgroup.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gio/gcontextspecificgroup.c b/gio/gcontextspecificgroup.c
index ffd1307e4..acad72767 100644
--- a/gio/gcontextspecificgroup.c
+++ b/gio/gcontextspecificgroup.c
@@ -73,7 +73,8 @@ g_context_specific_source_new (const gchar *name,
NULL,
NULL,
g_context_specific_source_dispatch,
- g_context_specific_source_finalize
+ g_context_specific_source_finalize,
+ NULL, NULL
};
GContextSpecificSource *css;
GSource *source;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]