Skip to content

Commit 6fdbae0

Browse files
committed
fix: unused parameter warning
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 3dafd03 commit 6fdbae0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/drivers/sd_diskio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ const Diskio_drvTypeDef SD_Driver =
7474
/* Private functions ---------------------------------------------------------*/
7575
static DSTATUS SD_CheckStatus(BYTE lun)
7676
{
77+
(void)lun;
7778
Stat = STA_NOINIT;
7879

7980
if(BSP_SD_GetCardState() == MSD_OK)
@@ -125,6 +126,7 @@ DSTATUS SD_status(BYTE lun)
125126
*/
126127
DRESULT SD_read(BYTE lun, BYTE *buff, DWORD sector, UINT count)
127128
{
129+
(void)lun;
128130
DRESULT res = RES_ERROR;
129131

130132
if(BSP_SD_ReadBlocks((uint32_t*)buff,
@@ -152,6 +154,7 @@ DRESULT SD_read(BYTE lun, BYTE *buff, DWORD sector, UINT count)
152154
#if _USE_WRITE == 1
153155
DRESULT SD_write(BYTE lun, const BYTE *buff, DWORD sector, UINT count)
154156
{
157+
(void)lun;
155158
DRESULT res = RES_ERROR;
156159

157160
if(BSP_SD_WriteBlocks((uint32_t*)buff,
@@ -179,6 +182,7 @@ DRESULT SD_write(BYTE lun, const BYTE *buff, DWORD sector, UINT count)
179182
#if _USE_IOCTL == 1
180183
DRESULT SD_ioctl(BYTE lun, BYTE cmd, void *buff)
181184
{
185+
(void)lun;
182186
DRESULT res = RES_ERROR;
183187
BSP_SD_CardInfo CardInfo;
184188

src/ff_gen_drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ uint8_t FATFS_LinkDriver(const Diskio_drvTypeDef *drv, char *path)
7979
*/
8080
uint8_t FATFS_UnLinkDriverEx(char *path, uint8_t lun)
8181
{
82+
(void)lun;
8283
uint8_t DiskNum = 0;
8384
uint8_t ret = 1;
8485

0 commit comments

Comments
 (0)