freertos: Fix SMP build warning in xTaskCreateStaticPinnedToCore

This commit is contained in:
Darian Leung
2022-03-22 23:51:43 +08:00
parent 9bd036e94b
commit 63d15957d2

View File

@@ -6513,7 +6513,7 @@ TaskHandle_t xTaskCreateStaticPinnedToCore( TaskFunction_t pxTaskCode,
StaticTask_t * const pxTaskBuffer, StaticTask_t * const pxTaskBuffer,
const BaseType_t xCoreID) const BaseType_t xCoreID)
{ {
BaseType_t ret; TaskHandle_t ret;
#if ( ( configUSE_CORE_AFFINITY == 1 ) && ( configNUM_CORES > 1 ) ) #if ( ( configUSE_CORE_AFFINITY == 1 ) && ( configNUM_CORES > 1 ) )
{ {
// Convert xCoreID into an affinity mask // Convert xCoreID into an affinity mask