projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4c0395
)
testsuite/gsk/test-render-nodes.c: Avoid VLA usage
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Wed, 28 Mar 2018 04:17:39 +0000
(12:17 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Mon, 2 Apr 2018 11:14:55 +0000
(19:14 +0800)
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
testsuite/gsk/test-render-nodes.c
patch
|
blob
|
history
diff --git
a/testsuite/gsk/test-render-nodes.c
b/testsuite/gsk/test-render-nodes.c
index 672bfcd25e24d99f40364e3b622c8c6570baf715..de695f1198cacf5dee8c1e9612d7985ffa808fa9 100644
(file)
--- 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)
{