summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-15 18:35:51 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-19 17:00:55 -0500
commit425fe40d67e9691f814e249f52cd1dc98edaeba2 (patch)
tree030bba8cbcd6c3e9b985dc1a7bcb79b26bdc2f13
parenta94fb3919895f7b0ecff3f83ff01c18eff678319 (diff)
downloadrtems-425fe40d67e9691f814e249f52cd1dc98edaeba2.tar.bz2
arm/lpc176x/misc/restart.c: Fix set but not used warning
-rw-r--r--c/src/lib/libbsp/arm/lpc176x/misc/restart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/arm/lpc176x/misc/restart.c b/c/src/lib/libbsp/arm/lpc176x/misc/restart.c
index f39ae19930..dc6af7a031 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 )();
}