Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove volatile declaration

  • Loading branch information...
commit 5d5f9a63cc059433aa304a4af58ca91a14715a9e 1 parent 9cd060a
@authorNari authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  internal.h
  2. +2 −2 parse.y
View
2  internal.h
@@ -745,7 +745,7 @@ ID rb_make_internal_id(void);
void rb_gc_mark_dsymbol(VALUE);
void rb_gc_free_dsymbol(VALUE);
VALUE rb_str_dynamic_intern(VALUE s);
-ID rb_check_id_without_pindown(volatile VALUE *);
+ID rb_check_id_without_pindown(VALUE *);
ID rb_sym2id_without_pindown(VALUE);
#ifdef RUBY_ENCODING_H
ID rb_check_id_cstr_without_pindown(const char *, long, rb_encoding *);
View
4 parse.y
@@ -10925,7 +10925,7 @@ rb_check_id(volatile VALUE *namep)
{
ID id;
- id = rb_check_id_without_pindown(namep);
+ id = rb_check_id_without_pindown((VALUE *)namep);
if (ID_DYNAMIC_SYM_P(id)) {
rb_pin_dynamic_symbol((VALUE)id);
}
@@ -10947,7 +10947,7 @@ rb_check_id_cstr(const char *ptr, long len, rb_encoding *enc)
}
ID
-rb_check_id_without_pindown(volatile VALUE *namep)
+rb_check_id_without_pindown(VALUE *namep)
{
st_data_t id;
VALUE tmp;
Please sign in to comment.
Something went wrong with that request. Please try again.