diff options
author | Toomas Soome <[email protected]> | 2020-12-28 02:31:02 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-27 16:31:02 -0800 |
commit | 40ab927ae817b44fcb7fa043a8073c5f049f9257 (patch) | |
tree | 6925fe90f054eda614fc5777eea26f87fe947b5c /cmd/zstream | |
parent | c449d4b06d1a6f26e3e422a845bff99a52b70000 (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 'cmd/zstream')
0 files changed, 0 insertions, 0 deletions