From 6579078287bce844add2d333cceccde5afdde598 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 12 Aug 2017 11:24:11 -0600 Subject: [PATCH] Eliminate another warning. --- sched/init/os_start.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sched/init/os_start.c b/sched/init/os_start.c index 961152ec4b..2feadf0908 100644 --- a/sched/init/os_start.c +++ b/sched/init/os_start.c @@ -327,11 +327,13 @@ static struct task_tcb_s g_idletcb[1]; /* This is the name of the idle task */ +#if CONFIG_TASK_NAME_SIZE <= 0 || !defined(CONFIG_SMP) #ifdef CONFIG_SMP static const char g_idlename[] = "CPU Idle"; #else static const char g_idlename[] = "Idle Task"; #endif +#endif /* This the IDLE idle threads argument list. NOTE: Normally the argument * list is created on the stack prior to starting the task. We have to