[rtems commit] lpc32xx/include/bsp.h: Resolve set but not used warning
Joel Sherrill
joel at rtems.org
Thu Aug 30 13:39:24 UTC 2018
Module: rtems
Branch: master
Commit: 76ac42ff9a3c9a6702a2f41ab3ec4f073d3ea8ad
Changeset: http://git.rtems.org/rtems/commit/?id=76ac42ff9a3c9a6702a2f41ab3ec4f073d3ea8ad
Author: Joel Sherrill <joel at rtems.org>
Date: Wed Aug 29 12:36:18 2018 -0500
lpc32xx/include/bsp.h: Resolve set but not used warning
---
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(); \
More information about the vc
mailing list