Fix build warnings about missing field initializer

This commit is contained in:
rbuj 2021-10-28 14:27:24 +02:00 committed by mbkma
parent f82acb0169
commit 9d70203167
10 changed files with 15 additions and 10 deletions

View File

@ -160,7 +160,7 @@ main (int argc, char **argv)
&wallpaper_files,
NULL,
N_("[WALLPAPER...]") },
{ NULL }
{ NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
};
option_context = g_option_context_new (NULL);

View File

@ -782,7 +782,9 @@ main(int argc, char** argv)
N_("Specify the name of the page to show (internet|multimedia|system|a11y)"),
N_("page")
},
{NULL}
{
NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL
}
};
GOptionContext* context = g_option_context_new(_("- MATE Default Applications"));

View File

@ -66,7 +66,8 @@ GType egg_cell_renderer_keys_get_type(void)
NULL, /* class_data */
sizeof (EggCellRendererKeys),
0, /* n_preallocs */
(GInstanceInitFunc) egg_cell_renderer_keys_init
(GInstanceInitFunc) egg_cell_renderer_keys_init,
NULL
};
cell_keys_type = g_type_register_static (GTK_TYPE_CELL_RENDERER_TEXT, "EggCellRendererKeys", &cell_keys_info, 0);
@ -522,6 +523,7 @@ pointless_eventbox_subclass_get_type (void)
sizeof (GtkEventBox),
0, /* n_preallocs */
(GInstanceInitFunc) NULL,
NULL
};
static const GInterfaceInfo cell_editable_info = {

View File

@ -178,7 +178,7 @@ main (int argc, char **argv)
N_
("Start the page with the accessibility settings showing"),
NULL},
{NULL}
{ NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
};

View File

@ -399,7 +399,7 @@ main (int argc, char **argv)
/* TRANSLATORS: don't translate the terms in brackets */
N_("Specify the name of the page to show (general)"),
N_("page") },
{NULL}
{ NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
};
context = g_option_context_new (_("- MATE Mouse Preferences"));

View File

@ -196,7 +196,7 @@ main (int argc,
N_("Thumbnail size (default: 128)"), N_("SIZE") },
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &arguments,
NULL, N_("FONT-FILE OUTPUT-FILE") },
{ NULL }
{ NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
};
#ifdef ENABLE_NLS

View File

@ -791,8 +791,8 @@ action_about (GSimpleAction *action,
}
static GActionEntry action_entries[] = {
{ "about", action_about, NULL, NULL, NULL },
{ "quit", action_quit, NULL, NULL, NULL }
{ "about", action_about, NULL, NULL, NULL, { 0 } },
{ "quit", action_quit, NULL, NULL, NULL, { 0 } }
};
static void

View File

@ -162,7 +162,7 @@ int main(int argc, char* argv[])
GError* error;
GOptionEntry options[] = {
{"hide", 0, 0, G_OPTION_ARG_NONE, &hidden, N_("Hide on start (useful to preload the shell)"), NULL},
{NULL}
{NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL}
};
#ifdef ENABLE_NLS

View File

@ -75,6 +75,7 @@ drw_monitor_get_type (void)
sizeof (DrwMonitor),
0, /* n_preallocs */
(GInstanceInitFunc) drw_monitor_init,
NULL
};
object_type = g_type_register_static (G_TYPE_OBJECT,

View File

@ -62,7 +62,7 @@ main (int argc, char *argv[])
N_("Enable debugging code"), NULL },
{ "no-check", 'n', 0, G_OPTION_ARG_NONE, &no_check,
N_("Don't check whether the notification area exists"), NULL },
{ NULL }
{ NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
};
GOptionContext *option_context;
GError *error = NULL;