mirror of
https://github.com/ruby/ruby.git
synced 2025-08-16 05:59:00 +02:00
Suppress unused-variable warnings
This commit is contained in:
parent
ee7bd7d732
commit
07b12a1f48
Notes:
git
2021-08-16 18:32:53 +09:00
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue