1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

regparse.c: conform C90

../regparse.c:5908:28: error: initializer for aggregate is not a compile-time constant [-Werror,-Wc99-extensions]
      Node* sequence[] = { np1, np2, np3, ((Node* )0) };
                           ^~~

https://travis-ci.org/ruby/ruby/jobs/460197620

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2018-11-27 11:24:19 +00:00
parent 9e2455b756
commit c3fe307808

View file

@ -5905,7 +5905,10 @@ node_extended_grapheme_cluster(Node** np, ScanEnv* env)
if (r != 0) goto err;
{ /* poor man's varargs :-) */
Node* sequence[] = { np1, np2, np3, NULL_NODE };
Node* sequence[] = { NULL_NODE, NULL_NODE, NULL_NODE, NULL_NODE };
sequence[0] = np1;
sequence[1] = np2;
sequence[2] = np3;
create_sequence_node(&list2, sequence);
np1 = np2 = np3 = NULL;
}