MaJerle / stm32fxxx-hal-libraries

Libraries for STM32F4xx and STM32F7xx built on HAL drivers from ST
MIT License
760 stars 436 forks source link

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

Open alpo opened 5 years ago

alpo commented 5 years ago

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.