diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-10-21 12:46:40 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-10-21 12:46:53 +0900 |
commit | 5a77e90fe843a2bfbde3df1867f142efb0ffe9fe (patch) | |
tree | b97ed712d758230db231a5156d0a8e692b0592bb /error.c | |
parent | 8c2e5bbf58e562ea410b53c2f77e4186d5ca9da3 (diff) |
Use rb_intern_const instead of rb_intern in Init functions
```
find . -name \*.o -exec nm {} + |&
sed '/Init_.*\.rbimpl_id/!d;s/^.* b //;s/\.[1-9][0-9]*$//;s/\.rbimpl_id$//' |
uniq
```
should be empty.
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2817,7 +2817,7 @@ Init_Exception(void) warning_categories = rb_hash_new(); rb_gc_register_mark_object(warning_categories); - rb_hash_aset(warning_categories, ID2SYM(rb_intern("deprecated")), Qtrue); + rb_hash_aset(warning_categories, ID2SYM(rb_intern_const("deprecated")), Qtrue); rb_obj_freeze(warning_categories); } |