mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
[master] address warnings building exportlibs
This commit is contained in:
@@ -937,6 +937,7 @@ dns_view_find2(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type,
|
|||||||
#ifndef BIND9
|
#ifndef BIND9
|
||||||
UNUSED(use_hints);
|
UNUSED(use_hints);
|
||||||
UNUSED(use_static_stub);
|
UNUSED(use_static_stub);
|
||||||
|
UNUSED(zone);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -961,11 +962,11 @@ dns_view_find2(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type,
|
|||||||
/*
|
/*
|
||||||
* Find a database to answer the query.
|
* Find a database to answer the query.
|
||||||
*/
|
*/
|
||||||
zone = NULL;
|
|
||||||
db = NULL;
|
db = NULL;
|
||||||
node = NULL;
|
node = NULL;
|
||||||
is_staticstub_zone = ISC_FALSE;
|
is_staticstub_zone = ISC_FALSE;
|
||||||
#ifdef BIND9
|
#ifdef BIND9
|
||||||
|
zone = NULL;
|
||||||
result = dns_zt_find(view->zonetable, name, 0, NULL, &zone);
|
result = dns_zt_find(view->zonetable, name, 0, NULL, &zone);
|
||||||
if (zone != NULL && dns_zone_gettype(zone) == dns_zone_staticstub &&
|
if (zone != NULL && dns_zone_gettype(zone) == dns_zone_staticstub &&
|
||||||
!use_static_stub) {
|
!use_static_stub) {
|
||||||
@@ -1213,11 +1214,14 @@ dns_view_findzonecut2(dns_view_t *view, dns_name_t *name, dns_name_t *fname,
|
|||||||
dns_rdataset_t zrdataset, zsigrdataset;
|
dns_rdataset_t zrdataset, zsigrdataset;
|
||||||
dns_fixedname_t zfixedname;
|
dns_fixedname_t zfixedname;
|
||||||
|
|
||||||
|
#ifndef BIND9
|
||||||
|
UNUSED(zone);
|
||||||
|
#endif
|
||||||
|
|
||||||
REQUIRE(DNS_VIEW_VALID(view));
|
REQUIRE(DNS_VIEW_VALID(view));
|
||||||
REQUIRE(view->frozen);
|
REQUIRE(view->frozen);
|
||||||
|
|
||||||
db = NULL;
|
db = NULL;
|
||||||
zone = NULL;
|
|
||||||
use_zone = ISC_FALSE;
|
use_zone = ISC_FALSE;
|
||||||
try_hints = ISC_FALSE;
|
try_hints = ISC_FALSE;
|
||||||
zfname = NULL;
|
zfname = NULL;
|
||||||
@@ -1233,6 +1237,7 @@ dns_view_findzonecut2(dns_view_t *view, dns_name_t *name, dns_name_t *fname,
|
|||||||
* Find the right database.
|
* Find the right database.
|
||||||
*/
|
*/
|
||||||
#ifdef BIND9
|
#ifdef BIND9
|
||||||
|
zone = NULL;
|
||||||
result = dns_zt_find(view->zonetable, name, 0, NULL, &zone);
|
result = dns_zt_find(view->zonetable, name, 0, NULL, &zone);
|
||||||
if (result == ISC_R_SUCCESS || result == DNS_R_PARTIALMATCH)
|
if (result == ISC_R_SUCCESS || result == DNS_R_PARTIALMATCH)
|
||||||
result = dns_zone_getdb(zone, &db);
|
result = dns_zone_getdb(zone, &db);
|
||||||
|
Reference in New Issue
Block a user