diff options
author | kmacy <kmacy@FreeBSD.org> | 2006-12-26 02:48:42 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2006-12-26 02:48:42 +0000 |
commit | 08c1269d8263678d80e3270dc3adec6edad71e3d (patch) | |
tree | f2805973fbc0cbd480c00c4514b2bf8deddf9d85 | |
parent | daaaed022cc8a07c8d0c2c7b352821cc597f8e87 (diff) | |
download | FreeBSD-src-08c1269d8263678d80e3270dc3adec6edad71e3d.zip FreeBSD-src-08c1269d8263678d80e3270dc3adec6edad71e3d.tar.gz |
turn non-INVARIANT KASSERT into an empty but real C
statement so that syntax errors will still be caught
even if INVARIANTS aren't enabled in the config file
-rw-r--r-- | sys/sys/systm.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/sys/systm.h b/sys/sys/systm.h index f276a6c..96b937d 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -83,8 +83,11 @@ extern int maxusers; /* system tune hint */ } \ } while (0) #else -#define KASSERT(exp,msg) -#define VNASSERT(exp, vp, msg) +#define KASSERT(exp,msg) do { \ +} while (0) + +#define VNASSERT(exp, vp, msg) do { \ +} while (0) #endif #ifndef CTASSERT /* Allow lint to override */ |