ruby-changes:24002
From: nobu <ko1@a...>
Date: Wed, 13 Jun 2012 13:09:47 +0900 (JST)
Subject: [ruby-changes:24002] nobu:r36052 (trunk): thread_pthread.c: suppress warning
nobu 2012-06-13 13:09:35 +0900 (Wed, 13 Jun 2012) New Revision: 36052 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36052 Log: thread_pthread.c: suppress warning * thread_pthread.c (get_stack): define guard only when it is used. Modified files: trunk/thread_pthread.c Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 36051) +++ thread_pthread.c (revision 36052) @@ -509,7 +509,9 @@ {int err = (expr); if (err) return err;} #if defined HAVE_PTHREAD_GETATTR_NP || defined HAVE_PTHREAD_ATTR_GET_NP pthread_attr_t attr; +# if defined HAVE_PTHREAD_ATTR_GET_NP /* HAVE_PTHREAD_ATTR_GETGUARDSIZE */ size_t guard = 0; +# endif # ifdef HAVE_PTHREAD_GETATTR_NP /* Linux */ STACK_GROW_DIR_DETECTION; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/