1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress a unused-variable warning

This commit is contained in:
Nobuyoshi Nakada 2020-11-22 19:10:58 +09:00
parent 75d48a533d
commit 7c879cbb3f
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -203,7 +203,9 @@ VALUE io_spec_rb_io_close(VALUE self, VALUE io) {
VALUE io_spec_rb_io_set_nonblock(VALUE self, VALUE io) {
rb_io_t* fp;
#ifdef F_GETFL
int flags;
#endif
GetOpenFile(io, fp);
rb_io_set_nonblock(fp);
#ifdef F_GETFL