Fix some gcc -Wall unused warnings in the Ruby wrappers
Fixes SF bug 1333.
This commit is contained in:
parent
152905e193
commit
1c5246ad66
2 changed files with 1 additions and 3 deletions
|
|
@ -805,7 +805,6 @@ namespace swig
|
|||
rb_raise( rb_eTypeError, "not a valid index or range" );
|
||||
}
|
||||
|
||||
VALUE r = Qnil;
|
||||
static ID id_end = rb_intern("end");
|
||||
static ID id_start = rb_intern("begin");
|
||||
static ID id_noend = rb_intern("exclude_end?");
|
||||
|
|
|
|||
|
|
@ -151,14 +151,13 @@ SWIG_Ruby_InitRuntime(void)
|
|||
SWIGRUNTIME void
|
||||
SWIG_Ruby_define_class(swig_type_info *type)
|
||||
{
|
||||
VALUE klass;
|
||||
char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
|
||||
sprintf(klass_name, "TYPE%s", type->name);
|
||||
if (NIL_P(_cSWIG_Pointer)) {
|
||||
_cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
|
||||
rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
|
||||
}
|
||||
klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
|
||||
rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
|
||||
free((void *) klass_name);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue