]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:smbd: Avoid compiler warning for unused label
authorJo Sutton <josutton@catalyst.net.nz>
Mon, 1 Jul 2024 03:55:13 +0000 (15:55 +1200)
committerMartin Schwenke <martins@samba.org>
Tue, 2 Jul 2024 04:44:56 +0000 (04:44 +0000)
commit03e9575e38d737e0972d4736a80949dcdb515c44
treef445c146fad24c17a44011d49ca2bcb42d9c54bb
parente50a69334eaf6cadcf3ce93ab8b48e64c8940058
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
source3/smbd/open.c