From d98d1e9d212195fa80adc5ba5a59dd4df7b3524c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 22 Oct 2014 07:56:48 -0600 Subject: [PATCH] Eliminate a warning --- arch/arm/src/efm32/efm32_config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/efm32/efm32_config.h b/arch/arm/src/efm32/efm32_config.h index 0af2321b34..5e5727ecef 100644 --- a/arch/arm/src/efm32/efm32_config.h +++ b/arch/arm/src/efm32/efm32_config.h @@ -160,7 +160,9 @@ # undef CONFIG_LEUART0_SERIAL_CONSOLE # define HAVE_LEUART_CONSOLE 1 #else -# warning "No valid CONFIG_U[S]ART[n]_SERIAL_CONSOLE Setting" +# ifdef CONFIG_DEV_CONSOLE +# warning "No valid CONFIG_U[S]ART[n]_SERIAL_CONSOLE Setting" +# endif # undef CONFIG_USART0_SERIAL_CONSOLE # undef CONFIG_USART1_SERIAL_CONSOLE # undef CONFIG_USART2_SERIAL_CONSOLE