On Thu, Dec 06, 2018 at 05:11:29PM -0800, Bart Van Assche wrote:
This patch avoids that the following compiler warning is reported while
compiling the lockdep unit tests:
include/liblockdep/rwlock.h: In function 'liblockdep_pthread_rwlock_trywlock':
include/liblockdep/rwlock.h:66:9: warning: implicit declaration of function
'pthread_rwlock_trywlock'; did you mean 'pthread_rwlock_trywrlock'?
[-Wimplicit-function-declaration]
return pthread_rwlock_trywlock(&lock->rwlock) == 0 ? 1 : 0;
^~~~~~~~~~~~~~~~~~~~~~~
pthread_rwlock_trywrlock
Hm, I'm not sure why you're seeing that error (I'm not). We define
pthread_rwlock_trywlock() in:
include/liblockdep/rwlock.h:static inline int
liblockdep_pthread_rwlock_trywlock(liblockdep_pthread_rwlock_t *lock)
All the tests also seem to pass for me. Did you see failures on your
end?
--
Thanks,
Sasha