HomeFreeBSD

Fix clang 13 compilation errors

Description

Fix clang 13 compilation errors

os/linux/zfs/zvol_os.c:1111:3: error: ignoring return value of function
  declared with 'warn_unused_result' attribute [-Werror,-Wunused-result]
                add_disk(zv->zv_zso->zvo_disk);
                ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~

zpl_xattr.c:1579:1: warning: no previous prototype for function
  'zpl_posix_acl_release_impl' [-Wmissing-prototypes]

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes #13551
(cherry picked from commit 988431966639d791ac269011d136e85f3602df75)

Details

Provenance
Damian Szuberski <szuberskidamian@gmail.com>Authored on Jun 15 2022, 9:20 PM
Tony Hutter <hutter2@llnl.gov>Committed on Dec 1 2022, 8:39 PM
Parents
rG108c07c655be: Remove final K&R definitions
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG3d1e80809608: Fix clang 13 compilation errors (authored by Damian Szuberski <szuberskidamian@gmail.com>).Dec 1 2022, 8:39 PM