[gtk] testsuite/gtk/singleselection.c: Avoid VLA usage
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] testsuite/gtk/singleselection.c: Avoid VLA usage
- Date: Thu, 21 Feb 2019 02:38:53 +0000 (UTC)
commit a339a5d61763a57e2138d78ba0a828288ed828f4
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Feb 21 10:37:27 2019 +0800
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().
testsuite/gtk/singleselection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]