summaryrefslogtreecommitdiff
path: root/ext/-test-/postponed_job
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-27 16:48:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-27 16:48:15 +0000
commit462804fce43b15d0ffda8d37a0eee66d33b78246 (patch)
tree068c37dedc2f20e7f16b946cd10bce523e9cbf3c /ext/-test-/postponed_job
parentf72bd6e720ec0a75a3d3e64daef1536297c53967 (diff)
suppress warnings
* ext/-test-/postponed_job/postponed_job.c (pjob_register), (pjob_call_direct): none void function. * ext/-test-/tracepoint/tracepoint.c (tracepoint_track_objspace_events): adjust type to get rid of implicit cast. * ext/objspace/object_tracing.c (newobj_i): ditto. * ext/tk/tkutil/tkutil.c (tk_conv_args): adjust type against RHASH_SIZE(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/postponed_job')
-rw-r--r--ext/-test-/postponed_job/postponed_job.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/-test-/postponed_job/postponed_job.c b/ext/-test-/postponed_job/postponed_job.c
index d9938a5..ac1bf80 100644
--- a/ext/-test-/postponed_job/postponed_job.c
+++ b/ext/-test-/postponed_job/postponed_job.c
@@ -14,12 +14,14 @@ static VALUE
pjob_register(VALUE self, VALUE obj)
{
rb_postponed_job_register(0, pjob_callback, (void *)obj);
+ return self;
}
static VALUE
pjob_call_direct(VALUE self, VALUE obj)
{
pjob_callback((void *)obj);
+ return self;
}
void