summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2018-03-28 12:17:39 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2018-04-02 19:14:55 +0800
commitbca4a78f077626f81f072bca9da80405d03e626e (patch)
treeb67872cb0c1ba5e3ab7357897b9462b889b5dd66 /testsuite
parenta4c0395343c3969c330cb37efa45ae952ba74b86 (diff)
downloadgtk+-bca4a78f077626f81f072bca9da80405d03e626e.tar.gz
testsuite/gsk/test-render-nodes.c: Avoid VLA usage
Just #define N as 5, instead of using a const int, which is not enough to justify that as non-VLA usage. https://bugzilla.gnome.org/show_bug.cgi?id=773299
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gsk/test-render-nodes.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/gsk/test-render-nodes.c b/testsuite/gsk/test-render-nodes.c
index 672bfcd25e..de695f1198 100644
--- a/testsuite/gsk/test-render-nodes.c
+++ b/testsuite/gsk/test-render-nodes.c
@@ -443,10 +443,11 @@ opacity (void)
return container;
}
+#define N 5
+
static GskRenderNode *
color_matrix1 (void)
{
- const int N = 5;
GskRenderNode *container_node;
GskRenderNode *cairo_node = cairo ();
GskRenderNode *n;
@@ -518,6 +519,8 @@ color_matrix1 (void)
return container_node;
}
+#undef N
+
static GskRenderNode *
transformed_clip (void)
{