diff options
author | rbuj <[email protected]> | 2021-10-28 11:59:13 +0200 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2022-01-01 12:00:31 +0100 |
commit | 59c6c788da2ba71b16b50e6141556f6f030c3f8d (patch) | |
tree | f51bf6587376c627354b9638ab7b58b040fc129c | |
parent | 2741b990288cfb82957b79150c4391f29e561df1 (diff) | |
download | mate-power-manager-59c6c788da2ba71b16b50e6141556f6f030c3f8d.tar.bz2 mate-power-manager-59c6c788da2ba71b16b50e6141556f6f030c3f8d.tar.xz |
Fix build warnings about missing field initializer
-rw-r--r-- | src/gpm-backlight-helper.c | 2 | ||||
-rw-r--r-- | src/gpm-main.c | 2 | ||||
-rw-r--r-- | src/gpm-prefs.c | 2 | ||||
-rw-r--r-- | src/gpm-statistics.c | 2 |
4 files changed, 4 insertions, 4 deletions
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, ""); |