STMicroelectronics / STM32CubeF4

STM32Cube MCU Full Package for the STM32F4 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
871 stars 418 forks source link

Unused variable warnings with USE_FreeRTOS_HEAP_1 defined #173

Closed velly-simk closed 4 months ago

velly-simk commented 4 months ago

When using memory management scheme heap 1 for freertos, compiler gives several warnings for unused variables.

they are: hTask in osThreadTerminate, hTimer in osTimerDelete, hEventGroup in osEventFlagsDelete, hSemaphore in osSemaphoreDelete, hQueue in osMessageQueueDelete,

all of these warnings occur in cmsis_os2.c

Simple solution I'm using locally is to just use the UNUSED(X) macro in the #else blocks of the respective methods.

ALABSTM commented 4 months ago

Hi @velly-simk,

Thank you for this report. The point looks valid. Please note however, that all FreeRTOS applications provided within the STM32CubeF4 firmware are CMSIS OS V1-based.

I'll forward your point to our development teams and get back to you as soon as I have their feedback.

With regards,

ALABSTM commented 4 months ago

Hi @velly-simk,

As the CMSIS-RTOS interface is provided and maintained by Arm, please sumbit your report to them here. Please allow me to close this thread. Thank you for your comprehension.

With regards,