Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Mar 2021 18:44:06 GMT
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b2c8cbf992cb - main - Remove unnecessary semicolon from CRITICAL_ASSERT()
Message-ID:  <202103041844.124Ii6w0034949@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arichardson:

URL: https://cgit.FreeBSD.org/src/commit/?id=b2c8cbf992cb0b51118beae9c304580705ae00c9

commit b2c8cbf992cb0b51118beae9c304580705ae00c9
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-03-04 15:06:32 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2021-03-04 18:26:50 +0000

    Remove unnecessary semicolon from CRITICAL_ASSERT()
    
    This fixes off-by-default "empty statement" compiler warnings.
---
 sys/sys/systm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103041844.124Ii6w0034949>