diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-04 15:03:37 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-04 15:03:37 +0000 |
commit | 503e0d15703c150d7e1e9c4a10b4e46ceee7bb2c (patch) | |
tree | 0ff882124c58f8de066cbfc4da456f831a3056ac /internal.h | |
parent | 7a2246ee38e4f57583e4427a4529bafb4ea36c31 (diff) | |
download | ruby-503e0d15703c150d7e1e9c4a10b4e46ceee7bb2c.tar.gz |
nobody is using the return value of rb_io_fptr_finalize
However this function is listed in ruby/io.h. We cannot but
define a new, void-returning variant to use instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 85370ec0d7..6cab3d4ffd 100644 --- a/internal.h +++ b/internal.h @@ -1348,6 +1348,8 @@ VALUE rb_io_flush_raw(VALUE, int); size_t rb_io_memsize(const rb_io_t *); #endif int rb_stderr_tty_p(void); +void rb_io_fptr_finalize_internal(void *ptr); +#define rb_io_fptr_finalize rb_io_fptr_finalize_internal /* load.c */ VALUE rb_get_load_path(void); |