From dda5ba53dfaa3926b16cf3c786ae2395ced89ca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Thu, 15 Aug 2024 09:12:18 +0200 Subject: [PATCH] Ignore errno returned from rewind() in the interface iterator The clang-scan 19 has reported that we are ignoring errno after the call to rewind(). As we don't really care about the result, just silence the error, the whole code will be removed in the development version anyway as it is not needed. --- lib/isc/interfaceiter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/isc/interfaceiter.c b/lib/isc/interfaceiter.c index ab0f35acab..dfe44cac36 100644 --- a/lib/isc/interfaceiter.c +++ b/lib/isc/interfaceiter.c @@ -366,6 +366,7 @@ static void linux_if_inet6_first(isc_interfaceiter_t *iter) { if (iter->proc != NULL) { rewind(iter->proc); + errno = 0; /* Ignore the errno */ (void)linux_if_inet6_next(iter); } else { iter->valid = ISC_R_NOMORE;