FreeRTOS, warning at compile time

Post Reply
Phono
Posts: 92
Joined: Tue May 05, 2015 6:08 am
Location: Ermont, France

FreeRTOS, warning at compile time

Post by Phono » Sun Jul 16, 2017 11:42 am

Hi,
I have noticed that when compiling a sketch using either FreeRTOS 8.2.1 or 9.0.0, I get the following warning :

Code: Select all

D:\ArduinoForSTM32\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\FreeRTOS821\utility\port.c:345:2: warning: implicit declaration of function 'systick_attach_callback' [-Wimplicit-function-declaration]

  systick_attach_callback(&xPortSysTickHandler);

  ^
What puzzles me most is that the IDE is still able to link properly, though I could not find the definition of systick_attach_callback anywhere in either libraries.
Anyone aware of this? Why does it compile anyway? Shouldn't we fix this?

danieleff
Posts: 336
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: FreeRTOS, warning at compile time

Post by danieleff » Sun Jul 16, 2017 1:07 pm

It is "just" a compiler warning of no declaration.
If there was really no such method, you would get linker error "undefined reference to ...", so it is there somewhere.


Post Reply