From: Colin Vidal Date: Mon, 18 Aug 2025 12:28:47 +0000 (+0200) Subject: fix: dev: remove unused warning if DNS_TYPEPAIR_CHECK is off X-Git-Tag: v9.21.12~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d8c0b2a8d60211e5eb0a3f585a6dab2bb45f622;p=thirdparty%2Fbind9.git fix: dev: remove unused warning if DNS_TYPEPAIR_CHECK is off The compile-time DNS__TYPEPAIR_CHECK macro (wrapping an INSIST) is a no-op if DNS_TYPEPAIR_CHECK is off, making at least one unused variable in DNS_TYPEPAIR_TYPE and DNS_TYPEPAIR_COVERS scopes (as in such case, only one member of the pair is effectively needed). In such case, having an unused variable (the other member of the pair) is expected, this silence the warning by adding a (void) cast on the no-op version of DNS__TYPEPAIR_CHECK. Merge branch 'colin/typepair-check-unused-warn' into 'main' See merge request isc-projects/bind9!10860 --- 6d8c0b2a8d60211e5eb0a3f585a6dab2bb45f622