libc/assert: Reference the expression in all case

to avoid the warning "defined but not used"

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I55b7c092d0f2e5882fc1784987657c10cdf2d90b
This commit is contained in:
Xiang Xiao
2021-03-29 14:00:56 +08:00
committed by Abdelatif Guettouche
parent 3813634dc9
commit 5f3a98b5a8
20 changed files with 15 additions and 74 deletions
-2
View File
@@ -353,7 +353,6 @@ static inline unsigned int noteram_next(unsigned int ndx,
*
****************************************************************************/
#ifdef CONFIG_DEBUG_ASSERTIONS
static unsigned int noteram_length(void)
{
unsigned int head = g_noteram_info.ni_head;
@@ -366,7 +365,6 @@ static unsigned int noteram_length(void)
return head - tail;
}
#endif
/****************************************************************************
* Name: noteram_unread_length