From: Nicola Pero Date: Sat, 9 Jun 2001 18:05:09 +0000 (+0000) Subject: (__gthread_objc_init_thread_system): If pthread_key_create fails, it's not clear... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=abc0360c37b253ec89fe1976cffe76b0fa87f1da;p=gcc.git (__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 --- 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. */