[glib: 5/11] Fix missing initializer warning in gio/glocalfilemonitor.c:g_file_monitor_source_new()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 5/11] Fix missing initializer warning in gio/glocalfilemonitor.c:g_file_monitor_source_new()
- Date: Wed, 13 Jan 2021 11:50:54 +0000 (UTC)
commit 1061a22af195d20111869841231109ca1c9b3637
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Nov 17 00:59:06 2020 +0100
Fix missing initializer warning in gio/glocalfilemonitor.c:g_file_monitor_source_new()
gio/glocalfilemonitor.c: In function ‘g_file_monitor_source_new’:
gio/glocalfilemonitor.c:653:3: error: missing initializer for field ‘closure_callback’ of ‘GSourceFuncs’
{aka ‘struct _GSourceFuncs’}
653 | };
| ^
gio/glocalfilemonitor.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gio/glocalfilemonitor.c b/gio/glocalfilemonitor.c
index 4f1660d16..eccab231c 100644
--- a/gio/glocalfilemonitor.c
+++ b/gio/glocalfilemonitor.c
@@ -649,7 +649,8 @@ g_file_monitor_source_new (gpointer instance,
static GSourceFuncs source_funcs = {
NULL, NULL,
g_file_monitor_source_dispatch,
- g_file_monitor_source_finalize
+ g_file_monitor_source_finalize,
+ NULL, NULL
};
GFileMonitorSource *fms;
GSource *source;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]