Suppress unused-variable warnings

This commit is contained in:
Nobuyoshi Nakada 2021-08-16 16:02:49 +09:00
parent ee7bd7d732
commit 07b12a1f48
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2021-08-16 18:32:53 +09:00
2 changed files with 4 additions and 4 deletions

View file

@ -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;