Cast mtx to void in dummy MUTEX_ASSERT_LOCKED().
authorbluhm <bluhm@openbsd.org>
Fri, 1 Dec 2023 14:37:22 +0000 (14:37 +0000)
committerbluhm <bluhm@openbsd.org>
Fri, 1 Dec 2023 14:37:22 +0000 (14:37 +0000)
commitdbbcd4cdc26765f533befbbe5501bb7dd14c097d
tree100cb938cd7903ea272a684f73b471ead8a13e73
parentcff23a6b16962577314a62a2c3229aba06fe95e3
Cast mtx to void in dummy MUTEX_ASSERT_LOCKED().

To avoid unsued variable in ramdisk kernel, use the argument of
MUTEX_ASSERT_LOCKED() also in non DIAGNOSTIC builds.

OK sashan@ mvs@
sys/sys/mutex.h