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
This commit is contained in:
kmacy 2006-12-26 02:48:42 +00:00
parent daaaed022c
commit 08c1269d82

View File

@ -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 */