mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
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:
committed by
Abdelatif Guettouche
parent
3813634dc9
commit
5f3a98b5a8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user