diff options
author | Maple Ong <maple.ong@gusto.com> | 2023-04-12 23:25:32 -0400 |
---|---|---|
committer | Maple Ong <maple.ong@gusto.com> | 2023-04-12 23:25:32 -0400 |
commit | dce218e79fdd928866c4afbde15d8195ea62f18a (patch) | |
tree | 51f157e0248b63f49a48c616a5e0a3764987b181 /Lib | |
parent | 3be0110e845da7f861799703eb222e8a2964d95f (diff) | |
download | swig-dce218e79fdd928866c4afbde15d8195ea62f18a.tar.gz |
Fix "ISO C90 forbids mixed declarations and code" warning
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ruby/rubyrun.swg | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/ruby/rubyrun.swg b/Lib/ruby/rubyrun.swg index 322470891..40f62c238 100644 --- a/Lib/ruby/rubyrun.swg +++ b/Lib/ruby/rubyrun.swg @@ -157,7 +157,8 @@ 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 = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer); + VALUE cl; + cl = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer); rb_undef_alloc_func(cl); free((void *) klass_name); } |