Just noticed I'm getting the following warning when compiling ChibiOS/RT under IAR 7.60.1
Code: Select all
Warning[Pe188]: enumerated type mixed with another type ChibiOS\os\rt\ports\ARMCMx\cmsis_os\cmsis_os.h 505
I suggest to change the original code
Code: Select all
/**
* @brief Returns priority of a thread.
*/
static inline osPriority osThreadGetPriority(osThreadId thread_id) {
return thread_id->p_prio;
}
to
Code: Select all
/**
* @brief Returns priority of a thread.
*/
static inline osPriority osThreadGetPriority(osThreadId thread_id) {
return (osPriority)thread_id->p_prio;
}
This will clean this up
Just trying to be helpful