From d92efa3c0b8b995f5bd95ec4099db81a97480632 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 20 Apr 2008 06:14:49 +0000 Subject: * io.c (copy_stream_func): suppress warnings. * thread_pthread.c (add_signal_thread_list): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'io.c') diff --git a/io.c b/io.c index 8f640e2fcd..22b82bba8d 100644 --- a/io.c +++ b/io.c @@ -6517,7 +6517,9 @@ static VALUE copy_stream_func(void *arg) { struct copy_stream_struct *stp = (struct copy_stream_struct *)arg; +#ifdef USE_SENDFILE int ret; +#endif #ifdef USE_SENDFILE ret = copy_stream_sendfile(stp); @@ -6527,7 +6529,9 @@ copy_stream_func(void *arg) copy_stream_read_write(stp); +#ifdef USE_SENDFILE finish: +#endif return Qnil; } -- cgit v1.2.3