From a93a6a5459c16d80e0c7d7cdacf0122b1a0a10f4 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Tue, 17 Nov 2020 00:50:41 +0100 Subject: [PATCH] Fix missing initializer warning in gio/gsubprocess.c:initable_init() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gio/gsubprocess.c: In function ‘initable_init’: gio/gsubprocess.c:454:3: error: missing initializer for field ‘child_setup_data’ of ‘ChildData’ 454 | ChildData child_data = { { -1, -1, -1 }, 0 }; | ^~~~~~~~~ --- gio/gsubprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gsubprocess.c b/gio/gsubprocess.c index a18ed73c1..2ff8457df 100644 --- a/gio/gsubprocess.c +++ b/gio/gsubprocess.c @@ -451,7 +451,7 @@ initable_init (GInitable *initable, { GSubprocess *self = G_SUBPROCESS (initable); #ifdef G_OS_UNIX - ChildData child_data = { { -1, -1, -1 }, 0 }; + ChildData child_data = { { -1, -1, -1 }, 0, NULL, NULL, NULL }; #endif gint *pipe_ptrs[3] = { NULL, NULL, NULL }; gint pipe_fds[3] = { -1, -1, -1 };