From 1f072c43530edb598ba9fb07fd556c72cb25f0ae Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 18 Feb 2016 02:26:31 -0200 Subject: [PATCH] AP_HAL: fix unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../../libraries/AP_HAL/examples/UART_test/UART_test.cpp:13:28: warning: ‘uarts’ defined but not used [-Wunused-variable] static AP_HAL::UARTDriver* uarts[] = { ^ --- libraries/AP_HAL/examples/UART_test/UART_test.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libraries/AP_HAL/examples/UART_test/UART_test.cpp b/libraries/AP_HAL/examples/UART_test/UART_test.cpp index 8fd4d3f240..42643b6fbd 100644 --- a/libraries/AP_HAL/examples/UART_test/UART_test.cpp +++ b/libraries/AP_HAL/examples/UART_test/UART_test.cpp @@ -10,12 +10,6 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL(); -static AP_HAL::UARTDriver* uarts[] = { - hal.uartA, // console -}; -#define NUM_UARTS (sizeof(uarts)/sizeof(uarts[0])) - - /* setup one UART at 57600 */