assert.h: Don't use UNUSED macro since it's very easy happen conflict

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-03-01 03:41:38 +08:00 committed by Petro Karashchenko
parent 4a16cf71f9
commit 0dd844d89b
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@
# define DEBUGVERIFY(f) VERIFY(f)
#else
# define DEBUGPANIC()
# define DEBUGASSERT(f) UNUSED(f)
# define DEBUGASSERT(f) ((void)(1 || (f)))
# define DEBUGVERIFY(f) ((void)(f))
#endif
@ -67,7 +67,7 @@
*/
#ifdef NDEBUG
# define assert(f) UNUSED(f)
# define assert(f) ((void)(1 || (f)))
#else
# define assert(f) ASSERT(f)
#endif