HomeFreeBSD

libthr: change CHECK_AND_INIT_RWLOCK to an inline function

Description

libthr: change CHECK_AND_INIT_RWLOCK to an inline function

This was prompted by a compiler warning about 'ret' shadowing
a local variable in the callers of the macro.

Reviewed by: kib
MFC after: 3 days
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D10832

Details

Provenance
vangyzenAuthored on
Reviewer
kib
Differential Revision
D10832: libthr: use default WARNS level of 6, and fix warnings
Parents
rS318580: libthr: disable thread-safety warnings
Branches
Unknown
Tags
Unknown