s3/libsmb: clang: Fix 'Value stored during initialization is never read'
commit0be320393b85003f65d74e4e6a1b867a8d21eb1c
authorNoel Power <noel.power@suse.com>
Fri, 9 Aug 2019 15:06:20 +0000 (9 16:06 +0100)
committerGary Lockyer <gary@samba.org>
Wed, 28 Aug 2019 03:06:42 +0000 (28 03:06 +0000)
tree8ff7bd8cda84ebc6a89ec3fca2adb820e50ea57c
parent0c91634ebe4065bfb66c5cf575659aa1150fc2fb
s3/libsmb: clang: Fix 'Value stored during initialization is never read'

Fixes:

source3/libsmb/cliquota.c:340:11: warning: Value stored to 'status' during its initialization is never read <--[clang]
        NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
                 ^~~~~~   ~~~~~~~~~~~~~~~~~~~~~~
source3/libsmb/cliquota.c:357:4: warning: Value stored to 'status' is never read <--[clang]
                        status = NT_STATUS_OK;
                        ^        ~~~~~~~~~~~~
2 warnings generated.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Gary Lockyer <gary@samba.org>
Autobuild-Date(master): Wed Aug 28 03:06:42 UTC 2019 on sn-devel-184
source3/libsmb/cliquota.c