diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2022-04-19 12:28:22 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2022-04-19 12:45:57 +0000 |
commit | 11c549555469e4dd4e05a7b010b15a4b061fe604 (patch) | |
tree | c384721d6534c680908681a2136eb954da21eb8a | |
parent | d37dca9ec9d0613ff962d6e63e1bd5c8f0418836 (diff) |
ext2: plug a set-but-not-used var
Sponsored by: Rubicon Communications, LLC ("Netgate")
-rw-r--r-- | sys/fs/ext2fs/ext2_extents.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/fs/ext2fs/ext2_extents.c b/sys/fs/ext2fs/ext2_extents.c index 7aac71cf3fbc..3d24db4b396b 100644 --- a/sys/fs/ext2fs/ext2_extents.c +++ b/sys/fs/ext2fs/ext2_extents.c @@ -449,7 +449,11 @@ static int ext4_ext_check_header(struct inode *ip, struct ext4_extent_header *eh, int depth) { +#ifdef KDTRACE_HOOKS char *error_msg; +#else + char *error_msg __unused; +#endif if (le16toh(eh->eh_magic) != EXT4_EXT_MAGIC) { error_msg = "header: invalid magic"; |