mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s4/libcli/clideltree.c: clang: Value stored to 'status' is never read
Fixes: source4/libcli/clideltree.c:113:3: warning: Value stored to 'status' is never read <--[clang] status = smbcli_setatr(tree, dname, FILE_ATTRIBUTE_NORMAL, 0); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source4/libcli/clideltree.c:131:3: warning: Value stored to 'status' is never read <--[clang] status = smbcli_setatr(dstate.tree, dname, FILE_ATTRIBUTE_NORMAL, 0); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
ba55c02207
commit
f755de5413
@ -110,7 +110,7 @@ int smbcli_deltree(struct smbcli_tree *tree, const char *dname)
|
||||
}
|
||||
if (NT_STATUS_EQUAL(status, NT_STATUS_CANNOT_DELETE)) {
|
||||
/* it could be read-only */
|
||||
status = smbcli_setatr(tree, dname, FILE_ATTRIBUTE_NORMAL, 0);
|
||||
smbcli_setatr(tree, dname, FILE_ATTRIBUTE_NORMAL, 0);
|
||||
if (NT_STATUS_IS_OK(smbcli_unlink(tree, dname))) {
|
||||
return 1;
|
||||
}
|
||||
@ -128,7 +128,7 @@ int smbcli_deltree(struct smbcli_tree *tree, const char *dname)
|
||||
status = smbcli_rmdir(dstate.tree, dname);
|
||||
if (NT_STATUS_EQUAL(status, NT_STATUS_CANNOT_DELETE)) {
|
||||
/* it could be read-only */
|
||||
status = smbcli_setatr(dstate.tree, dname, FILE_ATTRIBUTE_NORMAL, 0);
|
||||
smbcli_setatr(dstate.tree, dname, FILE_ATTRIBUTE_NORMAL, 0);
|
||||
status = smbcli_rmdir(dstate.tree, dname);
|
||||
}
|
||||
if (NT_STATUS_IS_ERR(status)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user