From c419a6be1e3ba4ba2c6798414450d2c48016ce49 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 28 Oct 2021 11:39:18 +0200 Subject: Fix build warnings about missing field initializer --- savers/floaters.c | 2 +- savers/slideshow.c | 2 +- src/mate-screensaver-command.c | 2 +- src/mate-screensaver-dialog.c | 2 +- src/mate-screensaver.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/savers/floaters.c b/savers/floaters.c index 63d16f1..009cc3f 100644 --- a/savers/floaters.c +++ b/savers/floaters.c @@ -1142,7 +1142,7 @@ main (int argc, N_("The initial size and position of window"), N_("WIDTHxHEIGHT+X+Y") }, { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &filenames, N_("The source image to use"), NULL }, - {NULL} + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); diff --git a/savers/slideshow.c b/savers/slideshow.c index fa350f7..58cea19 100644 --- a/savers/slideshow.c +++ b/savers/slideshow.c @@ -67,7 +67,7 @@ main (int argc, char **argv) "no-stretch", 0, 0, G_OPTION_ARG_NONE, &no_stretch, N_("Do not try to stretch images on screen"), NULL }, - { NULL } + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); diff --git a/src/mate-screensaver-command.c b/src/mate-screensaver-command.c index af78d89..a233ebe 100644 --- a/src/mate-screensaver-command.c +++ b/src/mate-screensaver-command.c @@ -108,7 +108,7 @@ static GOptionEntry entries [] = "version", 'V', 0, G_OPTION_ARG_NONE, &do_version, N_("Version of this application"), NULL }, - { NULL } + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; static GMainLoop *loop = NULL; diff --git a/src/mate-screensaver-dialog.c b/src/mate-screensaver-dialog.c index 24c2610..567d094 100644 --- a/src/mate-screensaver-dialog.c +++ b/src/mate-screensaver-dialog.c @@ -62,7 +62,7 @@ static GOptionEntry entries[] = { {"enable-switch", 0, 0, G_OPTION_ARG_NONE, &enable_switch, N_("Show the switch user button"), NULL}, {"status-message", 0, 0, G_OPTION_ARG_STRING, &status_message, N_("Message to show in the dialog"), N_("MESSAGE")}, {"away-message", 0, 0, G_OPTION_ARG_STRING, &away_message, N_("Not used"), N_("MESSAGE")}, - {NULL} + {NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL} }; static char* get_id_string(GtkWidget* widget) diff --git a/src/mate-screensaver.c b/src/mate-screensaver.c index 926dd68..e2f8b3a 100644 --- a/src/mate-screensaver.c +++ b/src/mate-screensaver.c @@ -56,7 +56,7 @@ int main(int argc, char **argv) {"version", 0, 0, G_OPTION_ARG_NONE, &show_version, N_("Version of this application"), NULL}, {"no-daemon", 0, 0, G_OPTION_ARG_NONE, &no_daemon, N_("Don't become a daemon"), NULL}, {"debug", 0, 0, G_OPTION_ARG_NONE, &debug, N_("Enable debugging code"), NULL}, - {NULL} + {NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL} }; #ifdef ENABLE_NLS -- cgit v1.2.1