summaryrefslogtreecommitdiff
path: root/mate-dictionary
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-28 10:53:22 +0200
committerraveit65 <[email protected]>2022-02-11 18:34:16 +0100
commitae5293ecdb902c6ff3f4870e6ae94c69024b3288 (patch)
tree70188fa3c679b9f80e5aba95b0f19f05d6b6b0e2 /mate-dictionary
parentcada649969593de91457ba91901b8dd5e2ddb36f (diff)
downloadmate-utils-ae5293ecdb902c6ff3f4870e6ae94c69024b3288.tar.bz2
mate-utils-ae5293ecdb902c6ff3f4870e6ae94c69024b3288.tar.xz
Fix build warnings about missing field initializer
Diffstat (limited to 'mate-dictionary')
-rw-r--r--mate-dictionary/libgdict/gdict-context.c4
-rw-r--r--mate-dictionary/libgdict/gdict-utils.c2
-rw-r--r--mate-dictionary/src/gdict-app.c2
3 files changed, 6 insertions, 2 deletions
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);