From 466b405bba7838fbc8918e076fd9f9bd47f9578c Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Sat, 10 Jul 2021 21:39:47 +0200 Subject: [PATCH] Fixed compiler warning generated by unused parameters in STM32F4xx USART3 diver --- platform/mcu/STM32F4xx/drivers/USART3.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/mcu/STM32F4xx/drivers/USART3.cpp b/platform/mcu/STM32F4xx/drivers/USART3.cpp index 2545ecbe..4a5a492c 100644 --- a/platform/mcu/STM32F4xx/drivers/USART3.cpp +++ b/platform/mcu/STM32F4xx/drivers/USART3.cpp @@ -132,6 +132,8 @@ void usart3_terminate() ssize_t usart3_readBlock(void *buffer, size_t size, off_t where) { + (void) where; + miosix::Lock< miosix::FastMutex > l(rxMutex); char *buf = reinterpret_cast< char* >(buffer); size_t result = 0; @@ -164,6 +166,8 @@ ssize_t usart3_readBlock(void *buffer, size_t size, off_t where) ssize_t usart3_writeBlock(void *buffer, size_t size, off_t where) { + (void) where; + miosix::Lock< miosix::FastMutex > l(txMutex); const char *buf = reinterpret_cast< const char* >(buffer); for(size_t i = 0; i < size; i++)