summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-23 08:47:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-23 08:47:52 +0000
commit645257261e3ed388c2879f4386c4a805c0fdaeb9 (patch)
treed9ab07ec1f6101c818642b613f297f63b1f12334
parent7eaee5b5e24bcd9e0a43656d7785805798fc4d56 (diff)
tracepoint.c: no empty initializer list
* ext/-test-/tracepoint/tracepoint.c (tracepoint_track_objspace_events): C89 disallows empty initializer lists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/-test-/tracepoint/tracepoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/-test-/tracepoint/tracepoint.c b/ext/-test-/tracepoint/tracepoint.c
index 3334a25..a974c2c 100644
--- a/ext/-test-/tracepoint/tracepoint.c
+++ b/ext/-test-/tracepoint/tracepoint.c
@@ -50,7 +50,7 @@ tracepoint_track_objspace_events_i(VALUE tpval, void *data)
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);