diff options
author | Toomas Soome <[email protected]> | 2020-12-28 02:31:02 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-01-05 10:30:19 -0800 |
commit | 921ec61b7712e60dd9ec4fc1161dc6d45d62c0e7 (patch) | |
tree | 63f62b9b2e4fcd07ea4242543db3a0793484372e /lib | |
parent | fcd9966ed924753dd62f950da53b0237aab24bee (diff) |
implicit conversion from 'boolean_t' to 'ds_hold_flags_t'
Build error on illumos with gcc 10 did reveal:
In function 'dmu_objset_refresh_ownership':
../../common/fs/zfs/dmu_objset.c:857:25: error: implicit conversion
from 'boolean_t' to 'ds_hold_flags_t' {aka 'enum ds_hold_flags'}
[-Werror=enum-conversion]
857 | dsl_dataset_disown(ds, decrypt, tag);
| ^~~~~~~
cc1: all warnings being treated as errors
libzfs_input_check.c: In function 'zfs_ioc_input_tests':
libzfs_input_check.c:754:28: error: implicit conversion from
'enum dmu_objset_type' to 'enum lzc_dataset_type'
[-Werror=enum-conversion]
754 | err = lzc_create(dataset, DMU_OST_ZFS, NULL, NULL, 0);
| ^~~~~~~~~~~
cc1: all warnings being treated as errors
The same issue is present in openzfs, and also the same issue about
ds_hold_flags_t, which currently defines exactly one valid value.
Reviewed-by: Igor Kozhukhov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Toomas Soome <[email protected]>
Closes #11406
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions