]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove unused variable reported by Clang 15
authorMichal Nowak <mnowak@isc.org>
Thu, 24 Nov 2022 08:49:08 +0000 (09:49 +0100)
committerMichal Nowak <mnowak@isc.org>
Mon, 28 Nov 2022 13:35:03 +0000 (14:35 +0100)
    resolver.c:4776:15: error: variable 'count' set but not used [-Werror,-Wunused-but-set-variable]
            unsigned int count = 0;
                         ^

lib/dns/resolver.c

index 41d79e9d46d8b033bdff66af086feaa96c1f63f6..83b0d61aff0e0255cdb0cd8867d26313c315900d 100644 (file)
@@ -4773,7 +4773,6 @@ fctx_timeout_try_stale(isc_task_t *task, isc_event_t *event) {
        fetchctx_t *fctx = event->ev_arg;
        dns_fetchevent_t *dns_event, *next_event;
        isc_task_t *sender_task;
-       unsigned int count = 0;
 
        REQUIRE(VALID_FCTX(fctx));
 
@@ -4806,7 +4805,6 @@ fctx_timeout_try_stale(isc_task_t *task, isc_event_t *event) {
                dns_event->result = ISC_R_TIMEDOUT;
 
                isc_task_sendanddetach(&sender_task, ISC_EVENT_PTR(&dns_event));
-               count++;
        }
 
        UNLOCK(&fctx->res->buckets[fctx->bucketnum].lock);