diff --git a/ff.c b/ff.c index 043a032..c120c34 100644 --- a/ff.c +++ b/ff.c @@ -556,6 +556,8 @@ FRESULT dir_next ( /* FR_OK:Succeeded, FR_NO_FILE:End of table, FR_DENIED:EOT an BOOL streach /* FALSE: Do not streach table, TRUE: Streach table if needed */ ) { + (void) streach; + DWORD clst; WORD i; @@ -836,7 +838,7 @@ FRESULT dir_find ( /*-----------------------------------------------------------------------*/ /* Read an object from the directory */ /*-----------------------------------------------------------------------*/ -#if _FS_MINIMIZE <= 2 +#if (_FS_MINIMIZE <= 2) && !_FS_READONLY static FRESULT dir_read ( DIR *dj /* Pointer to the directory object to store read object name */ @@ -1351,6 +1353,8 @@ FRESULT auto_mount ( /* FR_OK(0): successful, !=0: any error occured */ BYTE chk_wp /* !=0: Check media write protection for write access */ ) { + (void) chk_wp; + FRESULT res; BYTE vol, fmt, *tbl; DSTATUS stat; diff --git a/sdhc.c b/sdhc.c index 4729269..9e80884 100644 --- a/sdhc.c +++ b/sdhc.c @@ -681,6 +681,9 @@ sdhc_soft_reset(struct sdhc_host *hp, int mask) int sdhc_wait_intr_debug(const char *funcname, int line, struct sdhc_host *hp, int mask, int timo) { + (void) funcname; + (void) line; + int status; mask |= SDHC_ERROR_INTERRUPT;