[前][次][番号順一覧][スレッド一覧]

ruby-changes:51898

From: shyouhei <ko1@a...>
Date: Mon, 30 Jul 2018 12:23:39 +0900 (JST)
Subject: [ruby-changes:51898] shyouhei:r64112 (trunk): non-constant aggregate initializer is a C99ism

shyouhei	2018-07-30 12:23:32 +0900 (Mon, 30 Jul 2018)

  New Revision: 64112

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64112

  Log:
    non-constant aggregate initializer is a C99ism

  Modified files:
    trunk/mjit.c
Index: mjit.c
===================================================================
--- mjit.c	(revision 64111)
+++ mjit.c	(revision 64112)
@@ -1137,7 +1137,8 @@ convert_unit_to_func(struct rb_mjit_unit https://github.com/ruby/ruby/blob/trunk/mjit.c#L1137
 #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. */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]