CubeMX V6.5.0: bug in generated ethernetif.h file.
CubeMX version 6.5.0 generates the following line in <project>/LWIP/target/ethernetif.h:
static void ethernetif_input(void const * argument);Previous version 6.4.0 generated this:
void ethernetif_input(void const * argument);The 'static' storage class specifier causes warnings in any module that includes "ethernetif.h". The function could be declared static, but this would best be done modifying the ethernetif.c file. In this manner, removing the declaration entirely from ethernetif.h would be possible, as it really is completely local to ethernetif.c.
In any case, unnecessary warnings are not desirable.
Follow-up:
Modifying ethernetif_header.ftl (C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\db\templates) fixes the issue. ST--please review why you added "static".
6.4.0 (good):
[#if use_rtos == 1][#-- rtos used --]
[#if cmsis_version = "v1"][#-- cmsis_version v1 --]
void ethernetif_input(void const * argument);6.5.0 (problem):
[#if use_rtos == 1][#-- rtos used --]
[#if cmsis_version = "v1"][#-- cmsis_version v1 --]
static void ethernetif_input(void const * argument);