mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
3069. [cleanup] Silence warnings messages from clang static analysis.
[RT #20256]
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: adb.c,v 1.256 2011/02/21 23:47:45 tbox Exp $ */
|
||||
/* $Id: adb.c,v 1.257 2011/03/11 06:11:23 marka Exp $ */
|
||||
|
||||
/*! \file
|
||||
*
|
||||
@@ -2195,7 +2195,6 @@ check_expire_name(dns_adbname_t **namep, isc_stdtime_t now) {
|
||||
static void
|
||||
check_stale_name(dns_adb_t *adb, int bucket, isc_stdtime_t now) {
|
||||
int victims, max_victims;
|
||||
isc_boolean_t result;
|
||||
dns_adbname_t *victim, *next_victim;
|
||||
isc_boolean_t overmem = isc_mem_isovermem(adb->mctx);
|
||||
int scans = 0;
|
||||
@@ -2217,7 +2216,7 @@ check_stale_name(dns_adb_t *adb, int bucket, isc_stdtime_t now) {
|
||||
INSIST(!NAME_DEAD(victim));
|
||||
scans++;
|
||||
next_victim = ISC_LIST_PREV(victim, plink);
|
||||
result = check_expire_name(&victim, now);
|
||||
(void)check_expire_name(&victim, now);
|
||||
if (victim == NULL) {
|
||||
victims++;
|
||||
goto next;
|
||||
@@ -2762,6 +2761,7 @@ dns_adb_createfind(dns_adb_t *adb, isc_task_t *task, isc_taskaction_t action,
|
||||
REQUIRE((options & DNS_ADBFIND_ADDRESSMASK) != 0);
|
||||
|
||||
result = ISC_R_UNEXPECTED;
|
||||
POST(result);
|
||||
wanted_addresses = (options & DNS_ADBFIND_ADDRESSMASK);
|
||||
wanted_fetches = 0;
|
||||
query_pending = 0;
|
||||
@@ -3168,6 +3168,7 @@ dns_adb_cancelfind(dns_adbfind_t *find) {
|
||||
}
|
||||
UNLOCK(&adb->namelocks[unlock_bucket]);
|
||||
bucket = DNS_ADB_INVALIDBUCKET;
|
||||
POST(bucket);
|
||||
|
||||
cleanup:
|
||||
|
||||
|
Reference in New Issue
Block a user