mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
-Wall cleanups (removed unused vars, no 'code has no effect' warnings)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9df466b287
commit
4e13d36561
20 changed files with 35 additions and 62 deletions
|
@ -554,8 +554,6 @@ rb_dl_malloc(VALUE self, VALUE size)
|
|||
VALUE
|
||||
rb_dl_strdup(VALUE self, VALUE str)
|
||||
{
|
||||
void *p;
|
||||
|
||||
str = rb_String(str);
|
||||
return rb_dlptr_new(strdup(RSTRING(str)->ptr), RSTRING(str)->len, dlfree);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue