ruby-changes:34166
From: nobu <ko1@a...>
Date: Fri, 30 May 2014 12:18:16 +0900 (JST)
Subject: [ruby-changes:34166] nobu:r46247 (trunk): fileno.c: suppress warnings
nobu 2014-05-30 12:18:08 +0900 (Fri, 30 May 2014) New Revision: 46247 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=46247&view=revision Log: fileno.c: suppress warnings * ext/-test-/dir/fileno.c (dir_check): suppress unused-function warnings, used only when dirfd() is available. Modified files: trunk/ext/-test-/dir/fileno.c Index: ext/-test-/dir/fileno.c =================================================================== --- ext/-test-/dir/fileno.c (revision 46246) +++ ext/-test-/dir/fileno.c (revision 46247) @@ -32,6 +32,7 @@ struct dir_data { https://github.com/ruby/ruby/blob/trunk/ext/-test-/dir/fileno.c#L32 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) https://github.com/ruby/ruby/blob/trunk/ext/-test-/dir/fileno.c#L72 if (!dirp->dir) dir_closed(); return dirp; } +#endif #define GetDIR(obj, dirp) ((dirp) = dir_check(obj)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/