Skip to content

Commit

Permalink
fatfs: Fix -Wstrict-prototypes + -Wimplicit-function-declaration warn…
Browse files Browse the repository at this point in the history
…ings

This will be required for upcoming gcc and clang versions.

Reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
  • Loading branch information
orbea authored and nadiaholmquist committed Oct 23, 2022
1 parent dd74e93 commit b5017ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/fatfs/diskio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/fatfs/ff.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/fatfs/ffsystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/* (C)ChaN, 2018 */
/*------------------------------------------------------------------------*/

#define _POSIX_SOURCE
#define _POSIX_THREAD_SAFE_FUNCTIONS
#include <time.h>

Expand Down Expand Up @@ -103,7 +104,7 @@ void ff_rel_grant (
#endif


DWORD get_fattime()
DWORD get_fattime(void)
{
// TODO: return melonDS time instead of RTC??

Expand Down

0 comments on commit b5017ca

Please sign in to comment.