testsuite/gtk/slicelistmodel.c: Avoid VLAs

Unfortunately VLA's are unlikely to be supported on any Visual Studio
versions, although it is C99, so replace it with g_newa() calls.
This commit is contained in:
Chun-wei Fan 2019-01-21 13:49:20 +08:00
parent d86c99312c
commit a0e8cd5bac

View File

@ -74,7 +74,7 @@ splice (GListStore *store,
guint *numbers,
guint added)
{
GObject *objects[added];
GObject **objects = g_newa (GObject *, added);
guint i;
for (i = 0; i < added; i++)