summaryrefslogtreecommitdiff
path: root/os_dep.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2015-02-28 23:01:14 +0300
committerIvan Maidanski <ivmai@mail.ru>2015-03-07 16:18:03 +0300
commitb51a05f39899bddbe97bb6a7ad86d15d6d0289d8 (patch)
treee2254b704cf093b993da5808ca0b630f02d64417 /os_dep.c
parent1741274f2a746d4ed9d3c2eb0463c7caefe7e3f9 (diff)
parent5e756d4d8df2949cb3b6e51532d3016cbb276fd7 (diff)
downloadbdwgc-b51a05f39899bddbe97bb6a7ad86d15d6d0289d8.tar.gz
Merge branch 'master' into ios-unified-ts-fix
Conflicts: include/private/gc_priv.h
Diffstat (limited to 'os_dep.c')
-rw-r--r--os_dep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/os_dep.c b/os_dep.c
index 98e2af98..a362498a 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -1201,13 +1201,13 @@ GC_INNER word GC_page_size = 0;
if (pthread_getattr_np(pthread_self(), &attr) == 0) {
if (pthread_attr_getstack(&attr, &stackaddr, &size) == 0
&& stackaddr != NULL) {
- pthread_attr_destroy(&attr);
+ (void)pthread_attr_destroy(&attr);
# ifdef STACK_GROWS_DOWN
stackaddr = (char *)stackaddr + size;
# endif
return (ptr_t)stackaddr;
}
- pthread_attr_destroy(&attr);
+ (void)pthread_attr_destroy(&attr);
}
WARN("pthread_getattr_np or pthread_attr_getstack failed"
" for main thread\n", 0);
@@ -1284,7 +1284,7 @@ GC_INNER word GC_page_size = 0;
if (pthread_attr_getstack(&attr, &(b -> mem_base), &size) != 0) {
ABORT("pthread_attr_getstack failed");
}
- pthread_attr_destroy(&attr);
+ (void)pthread_attr_destroy(&attr);
# ifdef STACK_GROWS_DOWN
b -> mem_base = (char *)(b -> mem_base) + size;
# endif
@@ -4185,7 +4185,7 @@ GC_INNER void GC_dirty_init(void)
/* This will call the real pthread function, not our wrapper */
if (pthread_create(&thread, &attr, GC_mprotect_thread, NULL) != 0)
ABORT("pthread_create failed");
- pthread_attr_destroy(&attr);
+ (void)pthread_attr_destroy(&attr);
/* Setup the sigbus handler for ignoring the meaningless SIGBUSs */
# ifdef BROKEN_EXCEPTION_HANDLING