[macruby-changes] [4383] MacRuby/trunk/bridgesupport.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jul 26 15:46:36 PDT 2010
Revision: 4383
http://trac.macosforge.org/projects/ruby/changeset/4383
Author: lsansonetti at apple.com
Date: 2010-07-26 15:46:35 -0700 (Mon, 26 Jul 2010)
Log Message:
-----------
remove unnecessary warnings when registering BridgeSupport types because they are triggered by false positives (<rdar://problem/8163942>)
Modified Paths:
--------------
MacRuby/trunk/bridgesupport.cpp
Modified: MacRuby/trunk/bridgesupport.cpp
===================================================================
--- MacRuby/trunk/bridgesupport.cpp 2010-07-25 03:19:02 UTC (rev 4382)
+++ MacRuby/trunk/bridgesupport.cpp 2010-07-26 22:46:35 UTC (rev 4383)
@@ -1012,9 +1012,6 @@
CFDictionarySetValue(rb_cObject_dict, (const void *)name,
(const void *)val);
}
- else {
- rb_warning("bs: enum `%s' already defined", rb_id2name(name));
- }
break;
}
@@ -1030,10 +1027,6 @@
(const void *)bs_const_magic_cookie);
do_not_free = true;
}
- else {
- rb_warning("bs: constant `%s' already defined",
- rb_id2name(name));
- }
break;
}
@@ -1049,10 +1042,6 @@
CFDictionarySetValue(rb_cObject_dict, (const void *)name,
(const void *)val);
}
- else {
- rb_warning("bs: string constant `%s' already defined",
- rb_id2name(name));
- }
break;
}
@@ -1067,9 +1056,6 @@
bs_funcs[name] = bs_func;
do_not_free = true;
}
- else {
- rb_warning("bs: function `%s' already defined", bs_func->name);
- }
break;
}
@@ -1101,10 +1087,6 @@
if (register_bs_boxed(type, value)) {
do_not_free = true;
}
- else {
- rb_warning("bs: boxed `%s' already defined",
- ((bs_element_opaque_t *)value)->name);
- }
break;
}
@@ -1198,10 +1180,6 @@
}
do_not_free = true;
}
- else {
- rb_warning("bs: CF type `%s' already defined",
- bs_cftype->type);
- }
break;
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100726/d9a635bc/attachment.html>
More information about the macruby-changes
mailing list