diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-06-24 16:12:43 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-06-24 16:12:43 +0530 |
commit | 08e5862f5f087138047c757376edb1b63217d547 (patch) | |
tree | 01f19fa018bbea57b891d0783d9af7e2cb0fbaa2 /sysdeps | |
parent | 0813022c7993dfa1379c533aeaa03d9257911a96 (diff) | |
download | glibc-08e5862f5f087138047c757376edb1b63217d547.zip glibc-08e5862f5f087138047c757376edb1b63217d547.tar.gz glibc-08e5862f5f087138047c757376edb1b63217d547.tar.bz2 |
Fix build warning in pthread_rwlock_*
The first argument of elision_adapt and that of ELISION_*LOCK have
different signs since __elision_rwcount is signed char * and the
argument of elision_adapt is uint8_t *. Modified elision_adapt to
accept signed char * instead of uint8_t *.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/x86/nptl/elide.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86/nptl/elide.h b/sysdeps/x86/nptl/elide.h index 19f27e5..5befa53 100644 --- a/sysdeps/x86/nptl/elide.h +++ b/sysdeps/x86/nptl/elide.h @@ -26,7 +26,7 @@ /* Adapt elision with ADAPT_COUNT and STATUS and decide retries. */ static inline bool -elision_adapt(uint8_t *adapt_count, unsigned int status) +elision_adapt(signed char *adapt_count, unsigned int status) { if (status & _XABORT_RETRY) return false; |