From: batt Date: Fri, 9 Jul 2010 10:47:03 +0000 (+0000) Subject: Silence warning. X-Git-Tag: 2.6.0~297 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=d419ed460bf1051971b9ed055d754dce0953e8c1;p=bertos.git Silence warning. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4019 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/arm/drv/spi_dma_at91.c b/bertos/cpu/arm/drv/spi_dma_at91.c index 25a10410..c4cbf2da 100644 --- a/bertos/cpu/arm/drv/spi_dma_at91.c +++ b/bertos/cpu/arm/drv/spi_dma_at91.c @@ -92,7 +92,7 @@ static size_t spi_dma_write(struct KFile *fd, const void *_buf, size_t size) */ static const uint8_t tx_dummy_buf[CONFIG_SPI_DMA_MAX_RX] = { [0 ... (CONFIG_SPI_DMA_MAX_RX - 1)] = 0xFF }; -static size_t spi_dma_read(struct KFile *fd, void *_buf, size_t size) +static size_t spi_dma_read(UNUSED_ARG(struct KFile *, fd), void *_buf, size_t size) { size_t count, total_rx = 0; uint8_t *buf = (uint8_t *)_buf;