summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-28 03:03:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-28 03:03:19 +0000
commitd00b1a76874bafd9d27b6da0ba599e8fcb238c8d (patch)
tree7505044dc36402d6ca274c978b40e08da93ecdae /vm.c
parent0ea1e43174a5b75682fc19789ea8dbeeb5b10ec6 (diff)
vm.c: suppress warning
* vm.c (check_machine_stack_size): ifdef a variable which is unused on non-pthread platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index a05f369..2f8d121 100644
--- a/vm.c
+++ b/vm.c
@@ -1643,7 +1643,10 @@ get_param(const char *name, size_t default_value, size_t min_value)
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