From 6baf0208eb85e834138f666153f94e8327e84996 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Tue, 9 Jul 2019 14:45:52 +0000 Subject: [PATCH] libcls/nbt: clang: Fix 'initialization value is never read' Fixes: libcli/nbt/nbtsocket.c:65:27: warning: Value stored to 'req' during its initialization is never read <--[clang] struct nbt_name_request *req = nbtsock->send_queue; ^~~ ~~~~~~~~~~~~~~~~~~~ 1 warning generated. Signed-off-by: Noel Power Reviewed-by: Gary Lockyer --- libcli/nbt/nbtsocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcli/nbt/nbtsocket.c b/libcli/nbt/nbtsocket.c index 33d53fba993..38a2192fbcd 100644 --- a/libcli/nbt/nbtsocket.c +++ b/libcli/nbt/nbtsocket.c @@ -62,7 +62,7 @@ static int nbt_name_request_destructor(struct nbt_name_request *req) */ static void nbt_name_socket_send(struct nbt_name_socket *nbtsock) { - struct nbt_name_request *req = nbtsock->send_queue; + struct nbt_name_request *req; TALLOC_CTX *tmp_ctx = talloc_new(nbtsock); NTSTATUS status; -- 2.47.3