ruby-changes:4604
From: ko1@a...
Date: Sun, 20 Apr 2008 15:14:58 +0900 (JST)
Subject: [ruby-changes:4604] nobu - Ruby:r16098 (trunk): * io.c (copy_stream_func): suppress warnings.
nobu 2008-04-20 15:14:49 +0900 (Sun, 20 Apr 2008)
New Revision: 16098
Modified files:
trunk/io.c
trunk/thread_pthread.c
Log:
* io.c (copy_stream_func): suppress warnings.
* thread_pthread.c (add_signal_thread_list): ditto.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/io.c?r1=16098&r2=16097&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/thread_pthread.c?r1=16098&r2=16097&diff_format=u
Index: thread_pthread.c
===================================================================
--- thread_pthread.c (revision 16097)
+++ thread_pthread.c (revision 16098)
@@ -115,7 +115,9 @@
#define native_cleanup_pop pthread_cleanup_pop
#define native_thread_yield() sched_yield()
+#ifndef __CYGWIN__
static void add_signal_thread_list(rb_thread_t *th);
+#endif
static void remove_signal_thread_list(rb_thread_t *th);
static rb_thread_lock_t signal_thread_list_lock;
@@ -462,9 +464,11 @@
struct signal_thread_list *next;
};
+#ifndef __CYGWIN__
static struct signal_thread_list signal_thread_list_anchor = {
0, 0, 0,
};
+#endif
#define FGLOCK(lock, body) do { \
native_mutex_lock(lock); \
@@ -489,6 +493,7 @@
}
#endif
+#ifndef __CYGWIN__
static void
add_signal_thread_list(rb_thread_t *th)
{
@@ -514,6 +519,7 @@
});
}
}
+#endif
static void
remove_signal_thread_list(rb_thread_t *th)
Index: io.c
===================================================================
--- io.c (revision 16097)
+++ io.c (revision 16098)
@@ -6517,7 +6517,9 @@
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_read_write(stp);
+#ifdef USE_SENDFILE
finish:
+#endif
return Qnil;
}
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/