Merge branch 'wip/smcv/full-initializer' into 'main'

gthread: Fully initialize GThreadFunctions structure in test

Closes #2812

See merge request GNOME/glib!3072
This commit is contained in:
Philip Withnall 2022-11-14 12:31:28 +00:00
commit 84284521b2

View File

@ -30,7 +30,14 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void
test_thread_deprecated_init (void)
{
const GThreadFunctions functions = { NULL, };
const GThreadFunctions functions = {
NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
NULL
};
/* Should be a no-op. */
g_thread_init (NULL);