Fixes:
source3/libsmb/dsgetdcname.c:1012:11: warning: Value stored to 'status' during its initialization is never read <--[clang]
NTSTATUS status = NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND;
^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source3/libsmb/dsgetdcname.c:1099:11: warning: Value stored to 'status' during its initialization is never read <--[clang]
NTSTATUS status = NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND;
^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
const char *site_name,
struct netr_DsRGetDCNameInfo **info)
{
- NTSTATUS status = NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND;
+ NTSTATUS status;
struct ip_service_name *dclist = NULL;
int num_dcs;
uint32_t flags,
struct netr_DsRGetDCNameInfo **info)
{
- NTSTATUS status = NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND;
+ NTSTATUS status;
struct netr_DsRGetDCNameInfo *myinfo = NULL;
bool first = true;
struct netr_DsRGetDCNameInfo *first_info = NULL;