diff options
Diffstat (limited to 'rb/src/IceRuby/ObjectFactory.cpp')
-rw-r--r-- | rb/src/IceRuby/ObjectFactory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rb/src/IceRuby/ObjectFactory.cpp b/rb/src/IceRuby/ObjectFactory.cpp index 778ca1d5efc..54660aa65fc 100644 --- a/rb/src/IceRuby/ObjectFactory.cpp +++ b/rb/src/IceRuby/ObjectFactory.cpp @@ -47,8 +47,8 @@ IceRuby::ObjectFactory::create(const string& id) // // Invoke the create method on the Ruby factory object. // - VALUE str = createString(id); - VALUE obj = callRuby(rb_funcall, p->second, rb_intern("create"), 1, str); + volatile VALUE str = createString(id); + volatile VALUE obj = callRuby(rb_funcall, p->second, rb_intern("create"), 1, str); if(NIL_P(obj)) { return 0; @@ -67,7 +67,7 @@ IceRuby::ObjectFactory::create(const string& id) // // Instantiate the object. // - VALUE obj = callRuby(rb_class_new_instance, 0, reinterpret_cast<VALUE*>(0), info->rubyClass); + volatile VALUE obj = callRuby(rb_class_new_instance, 0, reinterpret_cast<VALUE*>(0), info->rubyClass); assert(!NIL_P(obj)); return new ObjectReader(obj, info); } |