s3/libsmb: clang: Fix 'Value stored to 'create_options' is never read'
authorNoel Power <noel.power@suse.com>
Tue, 13 Aug 2019 14:36:56 +0000 (15:36 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 22 Oct 2019 17:28:27 +0000 (17:28 +0000)
commit4995a0e7e05c4affc9f1f7992cef54e57d9efdc0
tree17834264dbd3c885f16579374c0afce0c1e4929c
parent25a256bedf2992771b6ea1263fb5e730b27a53dc
s3/libsmb: clang: Fix 'Value stored to 'create_options' is never read'

It looks like the create_options are accumulated as the depending on the
failure reasons returned for cli_smb2_create_fnum (except for when a
directory is encountered) this looks like a mistake
Fixes:

source3/libsmb/cli_smb2_fnum.c:1870:3: warning: Value stored to 'create_options' is never read <--[clang]
                create_options |= FILE_DIRECTORY_FILE;
                ^
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/libsmb/cli_smb2_fnum.c