Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build warnings about missing field initializer #370

Merged
merged 1 commit into from
Jan 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -1208,7 +1208,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