Commit Diff
--- kernel/sched/task.c +++ kernel/sched/task.c @@ -135,7 +135,7 @@ struct sched_cpu_state { static struct ipc_mailbox *sched_mailbox_create(struct sched_task *task); static void sched_mailbox_destroy(struct sched_task *task); -static bool name_equals(const char *a, const char *b); +static bool __attribute__((unused)) name_equals(const char *a, const char *b); #if defined(LENIX_DEBUG_EXIT) /* Enable LENIX_DEBUG_EXIT_VERBOSE to re-enable noisy exit/wait logging. */ #endif @@ -1189,6 +1189,7 @@ sched_task_wait(uint64_t caller_pid, int64_t pid, int } } +#ifdef LENIX_DEBUG_EXIT static void __attribute__((unused)) exit_status_table_dump(const char *tag) { @@ -1211,6 +1212,13 @@ exit_status_table_dump(const char *tag) serial_write("\n", 1); } } +#else +static void __attribute__((unused)) +exit_status_table_dump(const char *tag) +{ + (void)tag; +} +#endif void sched_task_set_exit_status(struct sched_task *task, int status)
