mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Use G_OPTION_ENTRY_NULL to avoid missing initializer warnings
This commit is contained in:
committed by
Philip Withnall
parent
53834ee319
commit
e952248dc2
@@ -210,7 +210,7 @@ static GOptionEntry cmd_entries[] = {
|
||||
"Time to run each test in seconds", NULL},
|
||||
{"list", 'l', 0, G_OPTION_ARG_NONE, &list,
|
||||
"List all available tests and exit", NULL},
|
||||
{NULL}
|
||||
G_OPTION_ENTRY_NULL
|
||||
};
|
||||
|
||||
static gpointer
|
||||
|
@@ -37,7 +37,7 @@ static GOptionEntry cmd_entries[] = {
|
||||
"Print extra information", NULL},
|
||||
{"seconds", 's', 0, G_OPTION_ARG_INT, &test_length,
|
||||
"Time to run each test in seconds", NULL},
|
||||
{NULL}
|
||||
G_OPTION_ENTRY_NULL
|
||||
};
|
||||
|
||||
typedef struct _PerformanceTest PerformanceTest;
|
||||
|
Reference in New Issue
Block a user