Skip to content

Commit

Permalink
toolchain/ghs: Fix tstate_t "enumerated type mixed with another type"…
Browse files Browse the repository at this point in the history
… warnings

"/mnt/yang/qixinwei_cmake/nuttx/sched/sched/sched_removeblocked.c", line 58: warning #188-D:
          enumerated type mixed with another type
    tstate_t task_state = btcb->task_state;
"/mnt/yang/qixinwei_cmake/nuttx/sched/sched/sched_setpriority.c", line 243: warning #188-D:
          enumerated type mixed with another type
    tstate_t task_state = tcb->task_state;

Signed-off-by: yanghuatao <[email protected]>
  • Loading branch information
yanghuatao authored and xiaoxiang781216 committed Aug 26, 2024
1 parent f44232b commit f6b3e92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sched/sched/sched_removeblocked.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

void nxsched_remove_blocked(FAR struct tcb_s *btcb)
{
tstate_t task_state = btcb->task_state;
tstate_t task_state = (tstate_t)btcb->task_state;

/* Make sure the TCB is in a valid blocked state */

Expand Down
2 changes: 1 addition & 1 deletion sched/sched/sched_setpriority.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ static inline void nxsched_blocked_setpriority(FAR struct tcb_s *tcb,
int sched_priority)
{
FAR dq_queue_t *tasklist;
tstate_t task_state = tcb->task_state;
tstate_t task_state = (tstate_t)tcb->task_state;

/* CASE 3a. The task resides in a prioritized list. */

Expand Down

0 comments on commit f6b3e92

Please sign in to comment.