rv64gc/riscv_assert.c: Fix compilation without CONFIG_DEBUG_ALERT

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen 2021-05-18 08:46:22 +03:00 committed by Xiang Xiao
parent c9ccbb9e03
commit e79a45bb93
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg)
void up_assert(const char *filename, int lineno)
{
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_ALERT)
#if CONFIG_TASK_NAME_SIZE > 0
struct tcb_s *rtcb = running_task();
#endif