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:
parent
26b8a70bb3
commit
18e22154e0
1 changed files with 2 additions and 1 deletions
3
mjit.c
3
mjit.c
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue