From 5cc1d57c3957ecabe02c5ad79dd75c523457187f Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 30 May 2014 03:18:08 +0000 Subject: fileno.c: suppress warnings * ext/-test-/dir/fileno.c (dir_check): suppress unused-function warnings, used only when dirfd() is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/-test-/dir/fileno.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext') diff --git a/ext/-test-/dir/fileno.c b/ext/-test-/dir/fileno.c index 7a451bc1a7..4872942973 100644 --- a/ext/-test-/dir/fileno.c +++ b/ext/-test-/dir/fileno.c @@ -32,6 +32,7 @@ struct dir_data { rb_encoding *enc; }; +#ifdef HAVE_DIRFD static void * rb_check_typeddata0(VALUE obj /*, const rb_data_type_t *data_type */) { @@ -71,6 +72,7 @@ dir_check(VALUE dir) if (!dirp->dir) dir_closed(); return dirp; } +#endif #define GetDIR(obj, dirp) ((dirp) = dir_check(obj)) -- cgit v1.2.3