stm32fxxx-hal-libraries icon indicating copy to clipboard operation
stm32fxxx-hal-libraries copied to clipboard

fatfs/drivers/fatfs_sd_sdio.c cannot be compiled with GCC 4.9.3

Open alpo opened this issue 5 years ago • 0 comments

fatfs/drivers/fatfs_sd_sdio.c cannot be compiled with GCC 4.9.3 having the error:

stm32fxxx_hal_libraries/00-STM32_LIBRARIES/fatfs/drivers/fatfs_sd_sdio.c:388:16: error: static declaration of 'SDCARD_IsDetected' follows non-static declaration
 static uint8_t SDCARD_IsDetected(void) {
                ^
stm32fxxx_hal_libraries/00-STM32_LIBRARIES/fatfs/drivers/fatfs_sd_sdio.c:21:9: note: previous declaration of 'SDCARD_IsDetected' was here
 uint8_t SDCARD_IsDetected(void);
         ^

Despite an unsupported compiler with strict rules, it would be great to clarify the intent - should the SDCARD_IsDetected function be static or not.

alpo avatar Mar 20 '19 13:03 alpo