Skip to content

Commit

Permalink
module: zfs: arc: hdr_full_crypt_dest: drop unevaulated-only variable
Browse files Browse the repository at this point in the history
This explodes as -Wunused-variable on GCC 8.5.0, despite it being used,
just not in an evaulated context

Closes openzfs#13194
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
  • Loading branch information
nabijaczleweli committed Mar 11, 2022
1 parent 1282274 commit 86e9b22
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions module/zfs/arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1204,11 +1204,10 @@ hdr_full_dest(void *vbuf, void *unused)
static void
hdr_full_crypt_dest(void *vbuf, void *unused)
{
(void) unused;
arc_buf_hdr_t *hdr = vbuf;
(void) vbuf, (void) 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
Expand Down

0 comments on commit 86e9b22

Please sign in to comment.