summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-10-04 16:07:46 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-10-04 16:07:46 +0900
commit113bef697633803a33a547914b16ba5fbef165b8 (patch)
tree91fe5229b4700db5dd7eb123f460a6166ffe5960 /include/ruby
parent5be2af5f9052e7f799b2c576d78a373c57069771 (diff)
downloadruby-113bef697633803a33a547914b16ba5fbef165b8.tar.gz
array.c (rb_mem_clear): remove "register" from arguments
to suppress the following warning: ``` compiling cxxanyargs.cpp In file included from cxxanyargs.cpp:1: In file included from ../../.././include/ruby/ruby.h:2150: ../../.././include/ruby/intern.h:56:19: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] void rb_mem_clear(register VALUE*, register long); ^~~~~~~~~ ../../.././include/ruby/intern.h:56:36: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] void rb_mem_clear(register VALUE*, register long); ^~~~~~~~~ ```
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/intern.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index 66c2ca6025..d6b0a05f39 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -53,7 +53,7 @@ RUBY_SYMBOL_EXPORT_BEGIN
#define UNLIMITED_ARGUMENTS (-1)
/* array.c */
-void rb_mem_clear(register VALUE*, register long);
+void rb_mem_clear(VALUE*, long);
VALUE rb_assoc_new(VALUE, VALUE);
VALUE rb_check_array_type(VALUE);
VALUE rb_ary_new(void);