ruby-changes:31243
From: nobu <ko1@a...>
Date: Thu, 17 Oct 2013 10:38:09 +0900 (JST)
Subject: [ruby-changes:31243] nobu:r43322 (trunk): bug_reporter.c: suppress warnings
nobu 2013-10-17 10:38:04 +0900 (Thu, 17 Oct 2013) New Revision: 43322 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43322 Log: bug_reporter.c: suppress warnings * ext/-test-/bug_reporter/bug_reporter.c (register_sample_bug_reporter): cast to suppress warnings. Modified files: trunk/ext/-test-/bug_reporter/bug_reporter.c Index: ext/-test-/bug_reporter/bug_reporter.c =================================================================== --- ext/-test-/bug_reporter/bug_reporter.c (revision 43321) +++ ext/-test-/bug_reporter/bug_reporter.c (revision 43322) @@ -13,7 +13,7 @@ sample_bug_reporter(FILE *out, void *ptr https://github.com/ruby/ruby/blob/trunk/ext/-test-/bug_reporter/bug_reporter.c#L13 static VALUE register_sample_bug_reporter(VALUE self, VALUE obj) { - rb_bug_reporter_add(sample_bug_reporter, NUM2INT(obj)); + rb_bug_reporter_add(sample_bug_reporter, (void *)NUM2INT(obj)); return Qnil; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/