forked from AuroraMiddleware/gtk
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:
parent
d86c99312c
commit
a0e8cd5bac
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user