diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-02-21 10:37:27 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-02-21 10:37:27 +0800 |
commit | a339a5d61763a57e2138d78ba0a828288ed828f4 (patch) | |
tree | 90216cccdd8d45738ac310b074696b063b8b1b27 /testsuite | |
parent | 2e94891a6f28fffadede3279fbc558eb0ebbb036 (diff) | |
download | gtk+-a339a5d61763a57e2138d78ba0a828288ed828f4.tar.gz |
testsuite/gtk/singleselection.c: Avoid VLA usage
It is unfortunate that Visual Studio is unlikely to support VLA usage,
so replace it with g_newa().
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gtk/singleselection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/gtk/singleselection.c b/testsuite/gtk/singleselection.c index 165ea5a413..4b7280fbbc 100644 --- a/testsuite/gtk/singleselection.c +++ b/testsuite/gtk/singleselection.c @@ -97,7 +97,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++) |