[glib: 3/8] Fix missing initializer warning in gio/inotify/inotify-kernel.c:ik_source_new()
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 3/8] Fix missing initializer warning in gio/inotify/inotify-kernel.c:ik_source_new()
- Date: Thu, 17 Dec 2020 08:53:11 +0000 (UTC)
commit 3b02d4641e43b28e41943bed1ee371e784c83b4a
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Mon Nov 16 18:56:20 2020 +0100
Fix missing initializer warning in gio/inotify/inotify-kernel.c:ik_source_new()
gio/inotify/inotify-kernel.c: In function ‘ik_source_new’:
gio/inotify/inotify-kernel.c:377:3: error: missing initializer for field ‘finalize’ of ‘GSourceFuncs’
{aka ‘struct _GSourceFuncs’}
377 | };
| ^
In file included from glib/giochannel.h:33,
from glib/glib.h:54,
from gio/inotify/inotify-kernel.c:30:
glib/gmain.h:272:14: note: ‘finalize’ declared here
272 | void (*finalize) (GSource *source); /* Can be NULL */
| ^~~~~~~~
gio/inotify/inotify-kernel.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/inotify/inotify-kernel.c b/gio/inotify/inotify-kernel.c
index 05cdcb1aa..1a30fc84d 100644
--- a/gio/inotify/inotify-kernel.c
+++ b/gio/inotify/inotify-kernel.c
@@ -372,8 +372,8 @@ ik_source_new (gboolean (* callback) (ik_event_t *event))
{
static GSourceFuncs source_funcs = {
NULL, NULL,
- ik_source_dispatch
- /* should have a finalize, but it will never happen */
+ ik_source_dispatch,
+ NULL, NULL, NULL
};
InotifyKernelSource *iks;
GSource *source;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]