From 07b12a1f4829ca3c7d60d56bb5c89069f0758d4c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 16 Aug 2021 16:02:49 +0900 Subject: Suppress unused-variable warnings --- thread_pthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'thread_pthread.c') diff --git a/thread_pthread.c b/thread_pthread.c index 36c0b33e00..15a5ff826b 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -765,10 +765,10 @@ get_stack(void **addr, size_t *size) # endif # ifdef HAVE_PTHREAD_ATTR_GETGUARDSIZE CHECK_ERR(pthread_attr_getguardsize(&attr, &guard)); - *size -= guard; # else - *size -= getpagesize(); + guard = getpagesize(); # endif + *size -= guard; pthread_attr_destroy(&attr); #elif defined HAVE_PTHREAD_ATTR_GET_NP /* FreeBSD, DragonFly BSD, NetBSD */ pthread_attr_t attr; -- cgit v1.2.1