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
The following commit(s) were added to refs/heads/master by this push: new d8483a24e8 include/threads.h: return values should be integer type to prevent compiler warnings d8483a24e8 is described below commit d8483a24e85db1dcd6f4c7b788e61950a8202193 Author: raiden00pl <raide...@railab.me> AuthorDate: Sun Oct 2 12:40:43 2022 +0200 include/threads.h: return values should be integer type to prevent compiler warnings --- include/threads.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/threads.h b/include/threads.h index a52b17561b..2bc81c34f1 100644 --- a/include/threads.h +++ b/include/threads.h @@ -38,11 +38,11 @@ /* Indicates thread error status */ -#define thrd_success ((FAR void *)OK) -#define thrd_timedout ((FAR void *)ETIMEDOUT) -#define thrd_busy ((FAR void *)EBUSY) -#define thrd_nomem ((FAR void *)ENOMEM) -#define thrd_error ((FAR void *)ERROR) +#define thrd_success (OK) +#define thrd_timedout (ETIMEDOUT) +#define thrd_busy (EBUSY) +#define thrd_nomem (ENOMEM) +#define thrd_error (ERROR) /* Defines the type of a mutex */