From 59c6c788da2ba71b16b50e6141556f6f030c3f8d Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 28 Oct 2021 11:59:13 +0200 Subject: Fix build warnings about missing field initializer --- src/gpm-backlight-helper.c | 2 +- src/gpm-main.c | 2 +- src/gpm-prefs.c | 2 +- src/gpm-statistics.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/gpm-backlight-helper.c b/src/gpm-backlight-helper.c index da0eb89..4faf0ce 100644 --- a/src/gpm-backlight-helper.c +++ b/src/gpm-backlight-helper.c @@ -171,7 +171,7 @@ main (gint argc, gchar *argv[]) { "get-max-brightness", '\0', 0, G_OPTION_ARG_NONE, &get_max_brightness, /* command line argument */ _("Get the number of brightness levels supported"), NULL }, - { NULL} + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; /* setup translations */ diff --git a/src/gpm-main.c b/src/gpm-main.c index 4212f32..1dbf59a 100644 --- a/src/gpm-main.c +++ b/src/gpm-main.c @@ -172,7 +172,7 @@ main (int argc, char *argv[]) N_("Exit after a small delay (for debugging)"), NULL }, { "immediate-exit", '\0', 0, G_OPTION_ARG_NONE, &immediate_exit, N_("Exit after the manager has loaded (for debugging)"), NULL }, - { NULL} + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; setlocale (LC_ALL, ""); diff --git a/src/gpm-prefs.c b/src/gpm-prefs.c index 8a1e26e..69848a2 100644 --- a/src/gpm-prefs.c +++ b/src/gpm-prefs.c @@ -71,7 +71,7 @@ main (int argc, char **argv) gint status; const GOptionEntry options[] = { - { NULL} + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; context = g_option_context_new (N_("MATE Power Preferences")); diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c index 8df24cd..ae144cb 100644 --- a/src/gpm-statistics.c +++ b/src/gpm-statistics.c @@ -1207,7 +1207,7 @@ main (int argc, char *argv[]) { "device", '\0', 0, G_OPTION_ARG_STRING, &last_device, /* TRANSLATORS: show a device by default */ N_("Select this device at startup"), NULL }, - { NULL} + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; setlocale (LC_ALL, ""); -- cgit v1.2.1