Skip to content

core: Express -1 as ~0 in thread_status_t cast #21539

core: Express -1 as ~0 in thread_status_t cast

core: Express -1 as ~0 in thread_status_t cast #21539

Re-run triggered October 15, 2023 20:48
Status Success
Total duration 3m 48s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

static-test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 warning
static-tests: core/include/sched.h#L190
Uncrustify proposes the following patch: --- a/core/include/sched.h +++ b/core/include/sched.h @@ -184,7 +184,7 @@ typedef enum { */ #define STATUS_ON_RUNQUEUE STATUS_RUNNING /**< to check if on run queue: `st >= STATUS_ON_RUNQUEUE` */ -#define STATUS_NOT_FOUND ((thread_status_t)~0) /**< Describes an illegal thread status */ +#define STATUS_NOT_FOUND ((thread_status_t) ~0) /**< Describes an illegal thread status */ /** @} */ /** * @def SCHED_PRIO_LEVELS