aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDamian Szuberski <[email protected]>2022-02-21 04:20:00 +0100
committerGitHub <[email protected]>2022-02-20 19:20:00 -0800
commit806739f991aa0d3fc5a36989fff8d8ab8fddf78f (patch)
treec486b2dd5f9d9ade96b7e5e897193607fcaa241d /include
parente41013078a90d5790c737eec573ec376ca21a234 (diff)
Correct compilation errors reported by GCC 10/11
New `zfs_type_t` value `ZFS_TYPE_INVALID` is introduced. Variable initialization is now possible to make GCC happy. Reviewed by: Brian Behlendorf <[email protected]> Signed-off-by: szubersk <[email protected]> Closes #12167 Closes #13103
Diffstat (limited to 'include')
-rw-r--r--include/sys/fs/zfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/fs/zfs.h b/include/sys/fs/zfs.h
index 6c0463e13..6e85c4b7b 100644
--- a/include/sys/fs/zfs.h
+++ b/include/sys/fs/zfs.h
@@ -50,6 +50,7 @@ extern "C" {
* combined into masks that can be passed to various functions.
*/
typedef enum {
+ ZFS_TYPE_INVALID = 0,
ZFS_TYPE_FILESYSTEM = (1 << 0),
ZFS_TYPE_SNAPSHOT = (1 << 1),
ZFS_TYPE_VOLUME = (1 << 2),