From ef4c4612e2c21feae24c0ea47a83942cbcebc465 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 9 Oct 2014 15:35:10 -0500 Subject: arm/nds: Warning clean up This patch eliminates most of the warnings in this BSP but attempts very little clean up. This BSP includes copies of a lot of code from free NDS libraries and modifications should be kept to a minimum. --- c/src/libchip/serial/ns16550.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'c/src/libchip') diff --git a/c/src/libchip/serial/ns16550.c b/c/src/libchip/serial/ns16550.c index b0aa38ff92..2c3bc9496e 100644 --- a/c/src/libchip/serial/ns16550.c +++ b/c/src/libchip/serial/ns16550.c @@ -132,7 +132,9 @@ NS16550_STATIC int ns16550_set_attributes( const struct termios *t ); -NS16550_STATIC void ns16550_isr(void *arg); +#if defined(BSP_FEATURE_IRQ_EXTENSION) || defined(BSP_FEATURE_IRQ_LEGACY) + NS16550_STATIC void ns16550_isr(void *arg); +#endif static rtems_interrupt_lock ns16550_lock = RTEMS_INTERRUPT_LOCK_INITIALIZER("NS16550"); -- cgit v1.2.3