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

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
This commit is contained in:
nobu 2014-05-30 03:18:08 +00:00
parent 279aaaf9a4
commit 5cc1d57c39

View file

@ -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))