Fixes for Ruby and using -Wmissing-field-initializers

This commit is contained in:
William S Fulton 2015-12-15 14:22:05 +00:00
commit 4f2dcfaeeb
3 changed files with 15 additions and 15 deletions

View file

@ -30,7 +30,7 @@ namespace Swig {
}
virtual swig_ruby_owntype get_own() const {
swig_ruby_owntype own = {0};
swig_ruby_owntype own = {0, 0};
return own;
}
};
@ -332,7 +332,7 @@ namespace Swig {
}
swig_ruby_owntype swig_release_ownership(void *vptr) const {
swig_ruby_owntype own = {0};
swig_ruby_owntype own = {0, 0};
if (vptr) {
SWIG_GUARD(swig_mutex_own);
swig_ownership_map::iterator iter = swig_owner.find(vptr);