libcls/nbt: clang: Fix 'initialization value is never read'
authorNoel Power <noel.power@suse.com>
Tue, 9 Jul 2019 14:45:52 +0000 (14:45 +0000)
committerGary Lockyer <gary@samba.org>
Wed, 24 Jul 2019 21:33:21 +0000 (21:33 +0000)
commit6baf0208eb85e834138f666153f94e8327e84996
tree2dc4ad4d9c6d891e8161a4306ba8077d46fbfa32
parent637cd1a6c4175c527caa144767f3543156c66ed5
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>
libcli/nbt/nbtsocket.c