[PATCH 07/42] powerpc/gen83xx/startup/bsprestart.c: Fix set but not used warning

Joel Sherrill joel.sherrill at oarcorp.com
Fri Oct 17 15:23:23 UTC 2014


---
 c/src/lib/libbsp/powerpc/gen83xx/startup/bsprestart.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/c/src/lib/libbsp/powerpc/gen83xx/startup/bsprestart.c b/c/src/lib/libbsp/powerpc/gen83xx/startup/bsprestart.c
index c0d36d3..4a2d298 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/startup/bsprestart.c
+++ b/c/src/lib/libbsp/powerpc/gen83xx/startup/bsprestart.c
@@ -31,6 +31,7 @@ void bsp_restart(void *addr)
   uint32_t hid0;
 
   rtems_interrupt_disable(level);
+  (void) level; /* avoid set but not used warning */
 
   hid0 = PPC_SPECIAL_PURPOSE_REGISTER(HID0);
 
-- 
1.9.3




More information about the devel mailing list