From f77695aad3907256bb31998f7bcc35b2a62f9670 Mon Sep 17 00:00:00 2001 From: Hornos Lee Date: Tue, 9 May 2023 17:14:27 +0800 Subject: [PATCH] Add a useless return value for _thread_entry to avoid compilation error. --- arch/linux/posix/gcc/port.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/linux/posix/gcc/port.c b/arch/linux/posix/gcc/port.c index 58c31d88b..a656e7ac7 100644 --- a/arch/linux/posix/gcc/port.c +++ b/arch/linux/posix/gcc/port.c @@ -291,6 +291,7 @@ __PORT__ void *_thread_entry(void *arg) _wait_resume(); params->entry(params->arg); params->exit(params->arg); + return NULL; } __PORT__ void _handle_context_switch()