summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-06 09:31:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-06 09:31:28 +0000
commit106e2cc619dc80ea16846eceb757f37ce0a0f4ef (patch)
treebb0db2032c37317e85218015b24c076d5aba0fc1
parent26c48195afc911ed45ae2db72dc68d7373e4504e (diff)
* cont.c (Init_Cont): th is used only when FIBER_USE_NATIVE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--cont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cont.c b/cont.c
index 41519fb048b..57b960a99e0 100644
--- a/cont.c
+++ b/cont.c
@@ -1425,9 +1425,9 @@ rb_fiber_s_current(VALUE klass)
void
Init_Cont(void)
{
+#ifdef FIBER_USE_NATIVE
rb_thread_t *th = GET_THREAD();
-#ifdef FIBER_USE_NATIVE
#ifdef _WIN32
SYSTEM_INFO info;
GetSystemInfo(&info);