summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorivmai <ivmai>2011-07-05 15:50:08 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:07:00 +0200
commitaaa06557570bc020a988353019e799b8d0d16943 (patch)
tree4a4cd088acc7854d5e92bf5141fe65391727b70e /tests
parentce5d588c6422d83ee76d8ee925b70528bec0b560 (diff)
2011-07-05 Ivan Maidanski <ivmai@mail.ru>
* dyn_load.c (GC_register_dynamic_libraries): Remove duplicate call of GC_FirstDLOpenedLinkMap (twice). * dyn_load.c (GC_register_main_static_data): Add comment. * cord/cordbscs.c (CORD_riter): Check for empty string passed (do not call CORD_riter4 if CORD_len() returned zero). * cord/cordbscs.c (CORD_init_min_len): Replace the K&R-style function definition with the ANSI C one. * cord/cordbscs.c: Expand all tabs to spaces; remove trailing spaces at EOLn. * tests/threadkey_test.c (on_thread_exit_inner): Check GC_pthread_create() result.
Diffstat (limited to 'tests')
-rw-r--r--tests/threadkey_test.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/threadkey_test.c b/tests/threadkey_test.c
index bf3f51e..d080a7b 100644
--- a/tests/threadkey_test.c
+++ b/tests/threadkey_test.c
@@ -45,11 +45,14 @@ void * GC_CALLBACK on_thread_exit_inner (struct GC_stack_base * sb, void * arg)
{
int res = GC_register_my_thread (sb);
pthread_t t;
+ int creation_res; /* Used to suppress a warning about */
+ /* unchecked pthread_create() result. */
- GC_pthread_create (&t, NULL, entry, NULL);
+ creation_res = GC_pthread_create (&t, NULL, entry, NULL);
if (res == GC_SUCCESS)
GC_unregister_my_thread ();
- return NULL;
+
+ return (void*)(GC_word)creation_res;
}
void on_thread_exit (void *v)