From ae5293ecdb902c6ff3f4870e6ae94c69024b3288 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 28 Oct 2021 10:53:22 +0200 Subject: Fix build warnings about missing field initializer --- mate-dictionary/libgdict/gdict-context.c | 4 ++++ mate-dictionary/libgdict/gdict-utils.c | 2 +- mate-dictionary/src/gdict-app.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'mate-dictionary') diff --git a/mate-dictionary/libgdict/gdict-context.c b/mate-dictionary/libgdict/gdict-context.c index 33b71263..7dab4525 100644 --- a/mate-dictionary/libgdict/gdict-context.c +++ b/mate-dictionary/libgdict/gdict-context.c @@ -66,6 +66,10 @@ gdict_context_get_type (void) (GClassInitFunc) gdict_context_class_init, NULL, /* class_finalize */ NULL, /* class_data */ + 0, /* instance_size */ + 0, /* n_preallocs */ + NULL, /* instance_init */ + NULL /* value_table */ }; context_type = g_type_register_static (G_TYPE_INTERFACE, diff --git a/mate-dictionary/libgdict/gdict-utils.c b/mate-dictionary/libgdict/gdict-utils.c index 78e31ba9..00d051ef 100644 --- a/mate-dictionary/libgdict/gdict-utils.c +++ b/mate-dictionary/libgdict/gdict-utils.c @@ -98,7 +98,7 @@ static GOptionEntry gdict_args[] = { { "gdict-no-debug", 0, 0, G_OPTION_ARG_CALLBACK, gdict_arg_no_debug_cb, N_("GDict debugging flags to unset"), N_("FLAGS") }, #endif /* GDICT_ENABLE_DEBUG */ - { NULL, }, + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }, }; static gboolean diff --git a/mate-dictionary/src/gdict-app.c b/mate-dictionary/src/gdict-app.c index 557fb032..6c5f228f 100644 --- a/mate-dictionary/src/gdict-app.c +++ b/mate-dictionary/src/gdict-app.c @@ -327,7 +327,7 @@ gdict_init (int *argc, char ***argv) N_("Database to use"), N_("db") }, { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, &lookup_words, N_("Words to look up"), N_("word") }, - { NULL }, + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }, }; g_assert (singleton == NULL); -- cgit v1.2.1