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

ruby-changes:30942

From: nobu <ko1@a...>
Date: Mon, 23 Sep 2013 17:48:00 +0900 (JST)
Subject: [ruby-changes:30942] nobu:r43021 (trunk): tracepoint.c: no empty initializer list

nobu	2013-09-23 17:47:52 +0900 (Mon, 23 Sep 2013)

  New Revision: 43021

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43021

  Log:
    tracepoint.c: no empty initializer list
    
    * ext/-test-/tracepoint/tracepoint.c (tracepoint_track_objspace_events):
      C89 disallows empty initializer lists.

  Modified files:
    trunk/ext/-test-/tracepoint/tracepoint.c
Index: ext/-test-/tracepoint/tracepoint.c
===================================================================
--- ext/-test-/tracepoint/tracepoint.c	(revision 43020)
+++ ext/-test-/tracepoint/tracepoint.c	(revision 43021)
@@ -50,7 +50,7 @@ tracepoint_track_objspace_events_i(VALUE https://github.com/ruby/ruby/blob/trunk/ext/-test-/tracepoint/tracepoint.c#L50
 static VALUE
 tracepoint_track_objspace_events(VALUE self)
 {
-    struct tracepoint_track track = {0, 0, 0, 0, 0, {}};
+    struct tracepoint_track track = {0, 0, 0, 0, 0,};
     VALUE tpval = rb_tracepoint_new(0, RUBY_INTERNAL_EVENT_NEWOBJ | RUBY_INTERNAL_EVENT_FREEOBJ |
 				    RUBY_INTERNAL_EVENT_GC_START | RUBY_INTERNAL_EVENT_GC_END,
 				    tracepoint_track_objspace_events_i, &track);

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

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