Use G_OPTION_ENTRY_NULL to avoid missing initializer warnings

This commit is contained in:
Emmanuel Fleury
2021-05-13 20:16:46 +00:00
committed by Philip Withnall
parent 53834ee319
commit e952248dc2
33 changed files with 46 additions and 42 deletions

View File

@@ -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

View File

@@ -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;