diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-31 09:28:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-31 09:28:20 +0000 |
commit | 99a9915b04100c353fd8d79e6940ce5bde9fb290 (patch) | |
tree | 45dd63e7b9262c43ebd8ef19b0057a150d1e3eb5 /variable.c | |
parent | a7fd673519929de15447ed524b3f40d9750e7752 (diff) | |
download | ruby-99a9915b04100c353fd8d79e6940ce5bde9fb290.tar.gz ruby-99a9915b04100c353fd8d79e6940ce5bde9fb290.tar.xz ruby-99a9915b04100c353fd8d79e6940ce5bde9fb290.zip |
* suppress warnings with -Wwrite-string.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/variable.c b/variable.c index a935c51d3..572c329da 100644 --- a/variable.c +++ b/variable.c @@ -270,13 +270,13 @@ rb_class_name(VALUE klass) return rb_class_path(rb_class_real(klass)); } -char * +const char * rb_class2name(VALUE klass) { return RSTRING_PTR(rb_class_name(klass)); } -char * +const char * rb_obj_classname(VALUE obj) { return rb_class2name(CLASS_OF(obj)); |