diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-16 09:21:07 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-16 09:21:07 +0000 |
commit | 96268c1dbddd223f1b782e55c237cdca2989fde6 (patch) | |
tree | bd38362a401e4e10c2b06609d245e9c0472071d5 | |
parent | 7edb0a275c73f08cb611efa95fe8c1d73002f982 (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
-rw-r--r-- | node.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |