]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add __diagused
authorMateusz Guzik <mjg@FreeBSD.org>
Thu, 15 Jul 2021 14:01:02 +0000 (14:01 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Sun, 25 Jul 2021 07:05:24 +0000 (07:05 +0000)
commitf0d0344742365c8fd548a2be6a31f0a9fe9b54a8
tree258166bfab6bfa4b4b224f29b07eaa0b3019ceaa
parent33222b6f8af85d8357450d3fb80d4d5e80668bf2
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

(cherry picked from commit b9296725cf99696b48926270a553044522d6e344)
sys/sys/systm.h