ruby-changes:26589
From: nobu <ko1@a...>
Date: Fri, 28 Dec 2012 12:04:45 +0900 (JST)
Subject: [ruby-changes:26589] nobu:r38640 (trunk): vm.c: suppress warning
nobu 2012-12-28 12:03:19 +0900 (Fri, 28 Dec 2012) New Revision: 38640 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38640 Log: vm.c: suppress warning * vm.c (check_machine_stack_size): ifdef a variable which is unused on non-pthread platforms. Modified files: trunk/vm.c Index: vm.c =================================================================== --- vm.c (revision 38639) +++ vm.c (revision 38640) @@ -1643,7 +1643,10 @@ get_param(const char *name, size_t defau https://github.com/ruby/ruby/blob/trunk/vm.c#L1643 static void check_machine_stack_size(size_t *sizep) { +#ifdef PTHREAD_STACK_MIN size_t size = *sizep; +#endif + #ifdef __SYMBIAN32__ *sizep = 64 * 1024; /* 64KB: Let's be slightly more frugal on mobile platform */ #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/