This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit e79a45bb93df5adca7d35897558e99c0deeef8a2
Author: Jukka Laitinen <[email protected]>
AuthorDate: Tue May 18 08:46:22 2021 +0300

    rv64gc/riscv_assert.c: Fix compilation without CONFIG_DEBUG_ALERT
    
    Signed-off-by: Jukka Laitinen <[email protected]>
---
 arch/risc-v/src/rv64gc/riscv_assert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/risc-v/src/rv64gc/riscv_assert.c 
b/arch/risc-v/src/rv64gc/riscv_assert.c
index 6a99759..a643f96 100644
--- a/arch/risc-v/src/rv64gc/riscv_assert.c
+++ b/arch/risc-v/src/rv64gc/riscv_assert.c
@@ -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
 

Reply via email to