ruby-changes:49684
From: shyouhei <ko1@a...>
Date: Sat, 13 Jan 2018 19:47:38 +0900 (JST)
Subject: [ruby-changes:49684] shyouhei:r61801 (trunk): flexible array member is a C99ism
shyouhei 2018-01-13 19:47:32 +0900 (Sat, 13 Jan 2018) New Revision: 61801 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61801 Log: flexible array member is a C99ism Modified files: trunk/iseq.c Index: iseq.c =================================================================== --- iseq.c (revision 61800) +++ iseq.c (revision 61801) @@ -2836,7 +2836,15 @@ struct succ_index_table { https://github.com/ruby/ruby/blob/trunk/iseq.c#L2836 unsigned int rank; uint64_t small_block_ranks; /* 9 bits * 7 = 63 bits */ uint64_t bits[512/64]; - } succ_part[]; + } succ_part[ +#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) + /* flexible array member */ +#elif defined(__GNUC__) && !defined(__STRICT_ANSI__) + 0 +#else + 1 +#endif + ]; } succ_index_table; #define imm_block_rank_set(v, i, r) (v) |= (uint64_t)(r) << (7 * (i)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/