mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
s3:smbd: Avoid compiler warning for unused label
If either of HAVE_FSTATFS and HAVE_LINUX_MAGIC_H are not defined, gcc produces the following error: ../../source3/smbd/open.c: In function ‘reopen_from_fsp’: ../../source3/smbd/open.c:1222:1: error: label ‘namebased_open’ defined but not used [-Werror=unused-label] 1222 | namebased_open: | ^~~~~~~~~~~~~~ Signed-off-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Tue Jul 2 04:44:56 UTC 2024 on atb-devel-224
This commit is contained in:
parent
e50a69334e
commit
03e9575e38
@ -1219,7 +1219,9 @@ static NTSTATUS reopen_from_fsp(struct files_struct *dirfsp,
|
|||||||
return NT_STATUS_OK;
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(HAVE_FSTATFS) && defined(HAVE_LINUX_MAGIC_H)
|
||||||
namebased_open:
|
namebased_open:
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
* Close the existing pathref fd and set the fsp flag
|
* Close the existing pathref fd and set the fsp flag
|
||||||
* is_pathref to false so we get a "normal" fd this time.
|
* is_pathref to false so we get a "normal" fd this time.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user