Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alpo opened this issue Mar 20, 2019 · 0 comments
Open

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

alpo opened this issue Mar 20, 2019 · 0 comments

Comments

@alpo
Copy link
Contributor

alpo commented Mar 20, 2019

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.

MaJerle added a commit that referenced this issue Apr 19, 2019
fix incompatible declaration (fixes issue #31)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant