[rtems commit] rtl22xx/.../bspreset.c: Eliminate warning for set not used variable
Joel Sherrill
joel at rtems.org
Thu Sep 4 13:59:24 UTC 2014
Module: rtems
Branch: master
Commit: 9f144dda006e88f7374976545ea16c0f3a7af03e
Changeset: http://git.rtems.org/rtems/commit/?id=9f144dda006e88f7374976545ea16c0f3a7af03e
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Tue Sep 2 18:04:14 2014 -0500
rtl22xx/.../bspreset.c: Eliminate warning for set not used variable
---
c/src/lib/libbsp/arm/rtl22xx/startup/bspreset.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/arm/rtl22xx/startup/bspreset.c b/c/src/lib/libbsp/arm/rtl22xx/startup/bspreset.c
index d3ee06b..deb58ac 100644
--- a/c/src/lib/libbsp/arm/rtl22xx/startup/bspreset.c
+++ b/c/src/lib/libbsp/arm/rtl22xx/startup/bspreset.c
@@ -16,9 +16,10 @@ void bsp_reset(void)
SKYEYE_MAGIC_ADDRESS = 0xff;
#else
- rtems_interrupt_level level;
+ rtems_interrupt_level level;
- rtems_interrupt_disable(level);
+ (void) level;
+ rtems_interrupt_disable(level);
#ifdef __thumb__
int tmp;
More information about the vc
mailing list