changeset 52:9521be9b391e

Fix various warnings.
author Daniel O'Connor <darius@dons.net.au>
date Sun, 07 Apr 2013 22:31:56 +0930
parents 590886732da9
children 6ad0603ea909
files fatfs_sd.c stm32_eval.h stm32_eval_sdio_sd.c
diffstat 3 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/fatfs_sd.c	Sun Apr 07 22:31:05 2013 +0930
+++ b/fatfs_sd.c	Sun Apr 07 22:31:56 2013 +0930
@@ -147,7 +147,6 @@
 disk_ioctl(BYTE pdrv, BYTE cmd, void *buff) {
     WORD *wd;
     DWORD *dwd;
-    SD_Error err;
     
     DEBUG("disk_ioctl(%d, %d, ...)\n", pdrv, cmd);
     
--- a/stm32_eval.h	Sun Apr 07 22:31:05 2013 +0930
+++ b/stm32_eval.h	Sun Apr 07 22:31:56 2013 +0930
@@ -19,5 +19,6 @@
 void SD_LowLevel_Init(void);
 void SD_LowLevel_DMA_RxConfig(uint32_t *BufferDST, uint32_t BufferSize);
 void SD_LowLevel_DMA_TxConfig(uint32_t *BufferSRC, uint32_t BufferSize);
+uint32_t SD_DMAEndOfTransferStatus(void);
 
 
--- a/stm32_eval_sdio_sd.c	Sun Apr 07 22:31:05 2013 +0930
+++ b/stm32_eval_sdio_sd.c	Sun Apr 07 22:31:56 2013 +0930
@@ -1937,7 +1937,7 @@
   * @param  cmd: The sent command index.
   * @retval SD_Error: SD Card Error code.
   */
-static SD_Error CmdResp1Error(uint8_t cmd)
+static SD_Error CmdResp1Error(uint8_t __attribute__((unused)) cmd)
 {
   while (!(SDIO->STA & (SDIO_FLAG_CCRCFAIL | SDIO_FLAG_CMDREND | SDIO_FLAG_CTIMEOUT)))
   {