aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-30 03:23:32 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-30 03:23:32 +0000
commit18e22154e0589fda56b204658c2d207a09a4bc7c (patch)
tree91e8312cea457843bc0c44e0e94ba8b7844fbca1 /mjit.c
parent26b8a70bb309c7a367b9134045508b5b5a580a77 (diff)
downloadruby-18e22154e0589fda56b204658c2d207a09a4bc7c.tar.gz
non-constant aggregate initializer is a C99ism
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mjit.c b/mjit.c
index c5fb709d92..5668b1a6e9 100644
--- a/mjit.c
+++ b/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. */