Fixes for Ruby and using -Wmissing-field-initializers
This commit is contained in:
parent
04539a930d
commit
4f2dcfaeeb
3 changed files with 15 additions and 15 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue