Skip to content

Commit

Permalink
Fix build warnings about missing field initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuj committed Jan 1, 2022
1 parent 2741b99 commit 59c6c78
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gpm-backlight-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion src/gpm-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, "");
Expand Down
2 changes: 1 addition & 1 deletion src/gpm-prefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
2 changes: 1 addition & 1 deletion src/gpm-statistics.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, "");
Expand Down

0 comments on commit 59c6c78

Please sign in to comment.