lib/addns: clang: Fix 'Value stored to 'err' is never read'
authorNoel Power <noel.power@suse.com>
Tue, 9 Jul 2019 14:50:24 +0000 (14:50 +0000)
committerGary Lockyer <gary@samba.org>
Wed, 24 Jul 2019 21:33:21 +0000 (21:33 +0000)
commitda4c1c5f39669274bf8ff5a0974b4111f80be798
treea0ed1ec84fd42f1c0ce05707ef5628276139ddf5
parent6baf0208eb85e834138f666153f94e8327e84996
lib/addns: clang: Fix 'Value stored to 'err' is never read'

Fixes:

/home/samba/samba/lib/addns/dnsmarshall.c:406:2: warning: Value stored to 'err' is never read <--[clang]
        err = ERROR_DNS_NO_MEMORY;
        ^     ~~~~~~~~~~~~~~~~~~~
/home/samba/samba/lib/addns/dnsmarshall.c:447:3: warning: Value stored to 'err' is never read <--[clang]
                err = buf->error;
                ^     ~~~~~~~~~~
2 warnings generated.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/addns/dnsmarshall.c