diff options
author | Noel Power <noel.power@suse.com> | 2019-07-09 14:45:52 +0000 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2019-07-24 21:33:21 +0000 |
commit | 6baf0208eb85e834138f666153f94e8327e84996 (patch) | |
tree | 2dc4ad4d9c6d891e8161a4306ba8077d46fbfa32 /libcli | |
parent | 637cd1a6c4175c527caa144767f3543156c66ed5 (diff) | |
download | samba-6baf0208eb85e834138f666153f94e8327e84996.tar.gz |
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 <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/nbt/nbtsocket.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |