From 97eaed7b0af4783fefa357d9a85406a309cc09dc Mon Sep 17 00:00:00 2001 From: Bradley Scott Date: Tue, 25 Oct 2016 10:59:19 -0400 Subject: [PATCH] STM32F3: Eliminate two unused variable warnings --- targets/TARGET_STM/TARGET_STM32F3/serial_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/targets/TARGET_STM/TARGET_STM32F3/serial_api.c b/targets/TARGET_STM/TARGET_STM32F3/serial_api.c index 802f3b9acc..5698b91fe3 100644 --- a/targets/TARGET_STM/TARGET_STM32F3/serial_api.c +++ b/targets/TARGET_STM/TARGET_STM32F3/serial_api.c @@ -292,6 +292,7 @@ static void uart_irq(int id) if (__HAL_UART_GET_IT_SOURCE(huart, UART_IT_RXNE) != RESET) { irq_handler(serial_irq_ids[id], RxIrq); volatile uint32_t tmpval = huart->Instance->RDR; // Clear RXNE flag + UNUSED(tmpval); } } if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) != RESET) { @@ -875,6 +876,7 @@ void serial_rx_abort_asynch(serial_t *obj) // clear flags __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF | UART_CLEAR_FEF | UART_CLEAR_OREF); volatile uint32_t tmpval = huart->Instance->RDR; // Clear RXNE flag + UNUSED(tmpval); // reset states huart->RxXferCount = 0;