[前][次][番号順一覧][スレッド一覧]

ruby-changes:63687

From: Nobuyoshi <ko1@a...>
Date: Sun, 22 Nov 2020 19:12:13 +0900 (JST)
Subject: [ruby-changes:63687] 7c879cbb3f (master): Suppress a unused-variable warning

https://git.ruby-lang.org/ruby.git/commit/?id=7c879cbb3f

From 7c879cbb3f24c742e0d3226c39d413abe7519205 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 22 Nov 2020 19:10:58 +0900
Subject: Suppress a unused-variable warning


diff --git a/spec/ruby/optional/capi/ext/io_spec.c b/spec/ruby/optional/capi/ext/io_spec.c
index 59613c1..73e6804 100644
--- a/spec/ruby/optional/capi/ext/io_spec.c
+++ b/spec/ruby/optional/capi/ext/io_spec.c
@@ -203,7 +203,9 @@ VALUE io_spec_rb_io_close(VALUE self, VALUE io) { https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/ext/io_spec.c#L203
 
 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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]