Skip to content

Commit

Permalink
Fix compile warning 'prio' may be used uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
iysheng committed Apr 14, 2022
1 parent ecd3074 commit e20f5ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osal/cmsis_os/cmsis_os2.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ osThreadId_t osThreadNew(osThreadFunc_t func,
k_err_t err;
uint32_t stack_size = K_TASK_STK_SIZE_MIN;
k_task_t* taskId = NULL;
k_prio_t prio;
k_prio_t prio = osPriorityNormal;

if (attr && func) {
if (attr->priority != osPriorityNone) {
Expand Down

0 comments on commit e20f5ad

Please sign in to comment.