mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 16:21:06 +00:00
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 *.
This commit is contained in:
parent
0813022c79
commit
08e5862f5f
@ -1,5 +1,8 @@
|
||||
2014-06-24 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||
|
||||
* sysdeps/x86/nptl/elide.h (elision_adapt): Make first
|
||||
argument type signed char.
|
||||
|
||||
* Makerules (check-abi): Dump diff of symlist if the test
|
||||
fails.
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user