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

non-constant aggregate initializer is a C99ism

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2018-07-30 03:23:32 +00:00
parent 26b8a70bb3
commit 18e22154e0

3
mjit.c
View file

@ -1137,7 +1137,8 @@ convert_unit_to_func(struct rb_mjit_unit *unit)
#else
/* splitting .c -> .o step and .o -> .so step, to cache .o files in the future */
if (success = compile_c_to_o(c_file, o_file)) {
const char *o_files[] = { o_file, NULL };
const char *o_files[2] = { NULL, NULL };
o_files[0] = o_file;
success = link_o_to_so(o_files, so_file);
/* Alwasy set o_file for compaction. The value is also used for lazy deletion. */