fix warnings

This commit is contained in:
dhewg 2010-07-01 00:49:07 +02:00
parent d3f899754c
commit 19c9e857e9
2 changed files with 8 additions and 1 deletions

6
ff.c
View File

@ -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;

3
sdhc.c
View File

@ -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;