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:
parent
279aaaf9a4
commit
5cc1d57c39
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue