module: zfs: arc: hdr_full_crypt_dest: drop unevaulated-only variable

This explodes as -Wunused-variable on GCC 8.5.0, despite it being used,
just not in an evaluated context

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Ryan Moeller <freqlabs@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13195
This commit is contained in:
наб 2022-03-19 00:53:05 +01:00 committed by GitHub
parent 4629dfe963
commit 045aeabce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1204,11 +1204,11 @@ hdr_full_dest(void *vbuf, void *unused)
static void static void
hdr_full_crypt_dest(void *vbuf, void *unused) hdr_full_crypt_dest(void *vbuf, void *unused)
{ {
(void) unused; (void) vbuf, (void) unused;
arc_buf_hdr_t *hdr = vbuf;
hdr_full_dest(vbuf, unused); hdr_full_dest(vbuf, unused);
arc_space_return(sizeof (hdr->b_crypt_hdr), ARC_SPACE_HDRS); arc_space_return(sizeof (((arc_buf_hdr_t *)NULL)->b_crypt_hdr),
ARC_SPACE_HDRS);
} }
static void static void