mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 19:54:32 +02:00
freertos: fix compilation warning at -O2 level
Closes https://github.com/espressif/esp-idf/issues/5525
This commit is contained in:
@@ -645,10 +645,11 @@ static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB, TaskFunction_t pxTaskCode
|
|||||||
*/
|
*/
|
||||||
void taskYIELD_OTHER_CORE( BaseType_t xCoreID, UBaseType_t uxPriority )
|
void taskYIELD_OTHER_CORE( BaseType_t xCoreID, UBaseType_t uxPriority )
|
||||||
{
|
{
|
||||||
TCB_t *curTCB = pxCurrentTCB[xCoreID];
|
TCB_t *curTCB;
|
||||||
BaseType_t i;
|
BaseType_t i;
|
||||||
|
|
||||||
if (xCoreID != tskNO_AFFINITY) {
|
if (xCoreID != tskNO_AFFINITY) {
|
||||||
|
curTCB = pxCurrentTCB[xCoreID];
|
||||||
if ( curTCB->uxPriority < uxPriority ) { // NOLINT(clang-analyzer-core.NullDereference) IDF-685
|
if ( curTCB->uxPriority < uxPriority ) { // NOLINT(clang-analyzer-core.NullDereference) IDF-685
|
||||||
vPortYieldOtherCore( xCoreID );
|
vPortYieldOtherCore( xCoreID );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user