mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* ruby.h (rb_string_value): add volatile to avoid compiler warning.
* string.c (rb_string_value): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cc043890f8
commit
84eff7b142
3 changed files with 8 additions and 2 deletions
2
string.c
2
string.c
|
@ -141,7 +141,7 @@ rb_str_to_str(str)
|
|||
|
||||
VALUE
|
||||
rb_string_value(ptr)
|
||||
VALUE *ptr;
|
||||
volatile VALUE *ptr;
|
||||
{
|
||||
return *ptr = rb_str_to_str(*ptr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue