aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2021-03-04 15:06:32 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2021-03-17 22:22:49 +0000
commitff6dded021a7772347b9d5ff6b7562d9e688b05f (patch)
tree10ccb099e78185de78e7454b440ee511a2ea902d
parent4159566e56a8521143c22b611e28157e958d1299 (diff)
downloadsrc-ff6dded021a7772347b9d5ff6b7562d9e688b05f.tar.gz
src-ff6dded021a7772347b9d5ff6b7562d9e688b05f.zip
Remove unnecessary semicolon from CRITICAL_ASSERT()
This fixes off-by-default "empty statement" compiler warnings. (cherry picked from commit b2c8cbf992cb0b51118beae9c304580705ae00c9)
-rw-r--r--sys/sys/systm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index 72a10c401af9..369b8bdedb51 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -193,7 +193,7 @@ void kassert_panic(const char *fmt, ...) __printflike(1, 2);
* Assert that a thread is in critical(9) section.
*/
#define CRITICAL_ASSERT(td) \
- KASSERT((td)->td_critnest >= 1, ("Not in critical section"));
+ KASSERT((td)->td_critnest >= 1, ("Not in critical section"))
/*
* If we have already panic'd and this is the thread that called