[PATCH 06/42] arm/lpc176x/misc/restart.c: Fix set but not used warning
Joel Sherrill
joel.sherrill at oarcorp.com
Fri Oct 17 15:23:22 UTC 2014
---
c/src/lib/libbsp/arm/lpc176x/misc/restart.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/c/src/lib/libbsp/arm/lpc176x/misc/restart.c b/c/src/lib/libbsp/arm/lpc176x/misc/restart.c
index f39ae19..dc6af7a 100644
--- a/c/src/lib/libbsp/arm/lpc176x/misc/restart.c
+++ b/c/src/lib/libbsp/arm/lpc176x/misc/restart.c
@@ -30,5 +30,6 @@ void bsp_restart( const void const *addr )
void (*start) ( void ) = addr;
rtems_interrupt_disable( level );
- ( *start )();
+ (void) level; /* avoid set but not used warning */
+ ( *start )();
}
--
1.9.3
More information about the devel
mailing list