summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-11 06:13:45 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-11 06:13:45 +0000
commit84eff7b1424ce636b272bea8dbd6620d7b5ef146 (patch)
tree53d747d275f4cf7ad8916899e961b842ea966f4c /ruby.h
parentcc043890f8cb7c0c057fb076b30765973716c470 (diff)
* 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
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.h b/ruby.h
index 971a7e0..81a87b0 100644
--- a/ruby.h
+++ b/ruby.h
@@ -186,7 +186,7 @@ void rb_check_type _((VALUE,int));
#define Check_Type(v,t) rb_check_type((VALUE)(v),t)
VALUE rb_str_to_str _((VALUE));
-VALUE rb_string_value _((VALUE*));
+VALUE rb_string_value _((volatile VALUE*));
#define StringValue(v) if (TYPE(v) != T_STRING) rb_string_value(&(v))
void rb_check_safe_str _((VALUE));