diff options
author | Olly Betts <olly@survex.com> | 2023-04-19 12:53:45 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2023-04-19 12:53:45 +1200 |
commit | aa2101404bf21879d0955f5edf3df2403c7c693a (patch) | |
tree | 7cd8d15f5eeac1eba0d43ed87e01bc06af7c35c6 /Lib | |
parent | dce218e79fdd928866c4afbde15d8195ea62f18a (diff) | |
download | swig-aa2101404bf21879d0955f5edf3df2403c7c693a.tar.gz |
Really fix "mixed declarations and code" warning
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ruby/rubyrun.swg | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/ruby/rubyrun.swg b/Lib/ruby/rubyrun.swg index 40f62c238..885292481 100644 --- a/Lib/ruby/rubyrun.swg +++ b/Lib/ruby/rubyrun.swg @@ -157,9 +157,7 @@ SWIG_Ruby_define_class(swig_type_info *type) _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject); rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new"); } - VALUE cl; - cl = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer); - rb_undef_alloc_func(cl); + rb_undef_alloc_func(rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer)); free((void *) klass_name); } |