HomeFreeBSD

Add __diagused

Description

Add __diagused

This can be used for variables which are only used with either
INVARIANTS or WITNESS. Without any annotation they run into dead store
warnings from cc --analyze and always annotating with __unused may hide
bad vars when it should not.

Reviewed by: kib, markj
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D31185

Details

Provenance
mjgAuthored on Jul 15 2021, 2:01 PM
Reviewer
kib
Differential Revision
D31185: Add __diagused
Parents
rG086cfe4df8ab: linuxkpi: Add spin_trylock_irqsave() macro
Branches
Unknown
Tags
Unknown