[PATCH 10/17] lpc32xx/include/bsp.h: Resolve set but not used warning

Joel Sherrill joel at rtems.org
Wed Aug 29 20:15:23 UTC 2018


---
 bsps/arm/lpc32xx/include/bsp.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bsps/arm/lpc32xx/include/bsp.h b/bsps/arm/lpc32xx/include/bsp.h
index 0f9d131..8ccb637 100644
--- a/bsps/arm/lpc32xx/include/bsp.h
+++ b/bsps/arm/lpc32xx/include/bsp.h
@@ -223,6 +223,7 @@ extern uint32_t lpc32xx_magic_zero_size [];
     uint32_t ctrl = 0; \
   \
     rtems_interrupt_disable(level); \
+    (void) level; /* avoid set but not used warning */ \
   \
     arm_cp15_data_cache_test_and_clean(); \
     arm_cp15_instruction_cache_invalidate(); \
-- 
1.8.3.1




More information about the devel mailing list