2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

3069. [cleanup] Silence warnings messages from clang static analysis.

[RT #20256]
This commit is contained in:
Mark Andrews
2011-03-11 06:11:27 +00:00
parent 6c77f40015
commit 0874abad14
76 changed files with 425 additions and 383 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rwlock.c,v 1.46 2009/01/18 23:48:14 tbox Exp $ */
/* $Id: rwlock.c,v 1.47 2011/03/11 06:11:26 marka Exp $ */
/*! \file */
@@ -261,6 +261,7 @@ isc_rwlock_lock(isc_rwlock_t *rwl, isc_rwlocktype_t type) {
}
cntflag = isc_atomic_xadd(&rwl->cnt_and_flag, READER_INCR);
POST(cntflag);
while (1) {
if ((rwl->cnt_and_flag & WRITER_ACTIVE) == 0)
break;