summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-16 09:21:07 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-16 09:21:07 +0000
commit96268c1dbddd223f1b782e55c237cdca2989fde6 (patch)
treebd38362a401e4e10c2b06609d245e9c0472071d5 /node.c
parent7edb0a275c73f08cb611efa95fe8c1d73002f982 (diff)
nested flexible array member is a GCCism
This is NG. The ISO C section 6.7.2.1 explicitly states that structs having flexible array members "shall not be a member of a structure or an element of an array." git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r--node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.c b/node.c
index 1ea6cade20..050f8e4061 100644
--- a/node.c
+++ b/node.c
@@ -1042,7 +1042,7 @@ rb_node_init(NODE *n, enum node_type type, VALUE a0, VALUE a1, VALUE a2)
typedef struct node_buffer_elem_struct {
struct node_buffer_elem_struct *next;
- NODE buf[FLEX_ARY_LEN];
+ NODE buf[1];
} node_buffer_elem_t;
struct node_buffer_struct {