mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-26 03:12:16 -04:00
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
This commit is contained in:
commit
6d8c0b2a8d
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@
|
|||
(base == dns_rdatatype_none && covers != dns_rdatatype_none) || \
|
||||
(base != dns_rdatatype_none && covers == dns_rdatatype_none))
|
||||
#else
|
||||
#define DNS__TYPEPAIR_CHECK(base, covers)
|
||||
#define DNS__TYPEPAIR_CHECK(base, covers) (void)(base), (void)(covers)
|
||||
#endif
|
||||
|
||||
#define DNS_TYPEPAIR_TYPE(type) \
|
||||
|
|
|
|||
Loading…
Reference in a new issue