unionfs: Use __diagused for a variable only used in KASSERT().

This commit is contained in:
John Baldwin 2022-04-13 16:08:20 -07:00
parent e565fa55e6
commit ac9c3c32c6

View File

@ -2594,7 +2594,7 @@ unionfs_add_writecount(struct vop_add_writecount_args *ap)
{
struct vnode *tvp, *vp;
struct unionfs_node *unp;
int error, writerefs;
int error, writerefs __diagused;
vp = ap->a_vp;
unp = VTOUNIONFS(vp);