diff options
author | orbea <orbea@riseup.net> | 2022-10-10 15:24:35 -0700 |
---|---|---|
committer | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2022-10-23 16:33:29 +0200 |
commit | b5017caa33f4647e444f45bf4e5dfbd6cdb3b3a7 (patch) | |
tree | c5035ad32f7332420401a05892bc0f3b8a488d0a | |
parent | dd74e936ed69c7267ebb3f6d58634bd68cf7f642 (diff) |
fatfs: Fix -Wstrict-prototypes + -Wimplicit-function-declaration warnings
This will be required for upcoming gcc and clang versions.
Reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
-rw-r--r-- | src/fatfs/diskio.c | 2 | ||||
-rw-r--r-- | src/fatfs/ff.h | 2 | ||||
-rw-r--r-- | src/fatfs/ffsystem.c | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/fatfs/diskio.c b/src/fatfs/diskio.c index 9ed4a76..5b5c054 100644 --- a/src/fatfs/diskio.c +++ b/src/fatfs/diskio.c @@ -30,7 +30,7 @@ void ff_disk_open(ff_disk_read_cb readcb, ff_disk_write_cb writecb, LBA_t seccnt else Status &= ~STA_PROTECT; } -void ff_disk_close() +void ff_disk_close(void) { ReadCb = (void*)0; WriteCb = (void*)0; diff --git a/src/fatfs/ff.h b/src/fatfs/ff.h index 800e47b..a8c34aa 100644 --- a/src/fatfs/ff.h +++ b/src/fatfs/ff.h @@ -421,7 +421,7 @@ typedef UINT (*ff_disk_read_cb)(BYTE* buff, LBA_t sector, UINT count); typedef UINT (*ff_disk_write_cb)(BYTE* buff, LBA_t sector, UINT count); void ff_disk_open(ff_disk_read_cb readcb, ff_disk_write_cb writecb, LBA_t seccnt); -void ff_disk_close(); +void ff_disk_close(void); #ifdef __cplusplus diff --git a/src/fatfs/ffsystem.c b/src/fatfs/ffsystem.c index b0409ef..63fedf6 100644 --- a/src/fatfs/ffsystem.c +++ b/src/fatfs/ffsystem.c @@ -3,6 +3,7 @@ /* (C)ChaN, 2018 */ /*------------------------------------------------------------------------*/ +#define _POSIX_SOURCE #define _POSIX_THREAD_SAFE_FUNCTIONS #include <time.h> @@ -103,7 +104,7 @@ void ff_rel_grant ( #endif -DWORD get_fattime() +DWORD get_fattime(void) { // TODO: return melonDS time instead of RTC?? |