From abc0360c37b253ec89fe1976cffe76b0fa87f1da Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Sat, 9 Jun 2001 18:05:09 +0000 Subject: [PATCH] (__gthread_objc_init_thread_system): If pthread_key_create fails, it's not clear what the return value is. (__gthread_objc_init_thread_system): If pthread_key_create fails, it's not clear what the return value is. This obvious fix makes sure it always returns -1 if a problem occurs. From-SVN: r43091 --- gcc/gthr-posix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h index 2042ebe0563..eae8f3e12ab 100644 --- a/gcc/gthr-posix.h +++ b/gcc/gthr-posix.h @@ -129,8 +129,8 @@ __gthread_objc_init_thread_system(void) return 0; } } - else - return -1; + + return -1; } /* Close the threads subsystem. */ -- 2.30.2