[macruby-changes] [5038] MacRuby/trunk/ext/libyaml/rubyext.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Dec 15 23:06:32 PST 2010


Revision: 5038
          http://trac.macosforge.org/projects/ruby/changeset/5038
Author:   lsansonetti at apple.com
Date:     2010-12-15 23:06:28 -0800 (Wed, 15 Dec 2010)
Log Message:
-----------
remove annoying ruby warnings and fix a compilation warning

Modified Paths:
--------------
    MacRuby/trunk/ext/libyaml/rubyext.c

Modified: MacRuby/trunk/ext/libyaml/rubyext.c
===================================================================
--- MacRuby/trunk/ext/libyaml/rubyext.c	2010-12-16 04:48:48 UTC (rev 5037)
+++ MacRuby/trunk/ext/libyaml/rubyext.c	2010-12-16 07:06:28 UTC (rev 5038)
@@ -83,7 +83,7 @@
 	size_t *size_read)
 {
     const long result = rb_io_primitive_read(ExtractIOStruct(io_ptr),
-	    (UInt8 *)buffer, size);
+	    (char *)buffer, size);
     *size_read = result;
     return result != -1;
 }
@@ -530,7 +530,7 @@
 	    break;
 
 	case YAML_ALIAS_EVENT:
-	    rb_warn("ignoring alias");
+	    // ignoring alias
 	    node = Qundef;
 	    break;
 
@@ -652,7 +652,7 @@
 	    break;
 
 	case YAML_ALIAS_EVENT:
-	    rb_warn("ignoring alias");
+	    // ignoring alias
 	    node = Qundef;
 	    break;
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101215/6ba8fce5/attachment-0001.html>


More information about the macruby-changes mailing list