STM32CubeF4 icon indicating copy to clipboard operation
STM32CubeF4 copied to clipboard

Unused variable warnings with USE_FreeRTOS_HEAP_1 defined

Open velly-simk opened this issue 1 year ago • 1 comments

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.

velly-simk avatar May 17 '24 19:05 velly-simk

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 avatar May 21 '24 16:05 ALABSTM

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,

ALABSTM avatar May 24 '24 17:05 ALABSTM