[rtems commit] smdk2410/.../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:    08bcf01c3be24870e8e9c934b6a186d80f3f15c4
Changeset: http://git.rtems.org/rtems/commit/?id=08bcf01c3be24870e8e9c934b6a186d80f3f15c4

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Tue Sep  2 18:02:49 2014 -0500

smdk2410/.../bspreset.c: Eliminate warning for set not used variable

---

 c/src/lib/libbsp/arm/smdk2410/startup/bspreset.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/c/src/lib/libbsp/arm/smdk2410/startup/bspreset.c b/c/src/lib/libbsp/arm/smdk2410/startup/bspreset.c
index 297bb4c..d6c583b 100644
--- a/c/src/lib/libbsp/arm/smdk2410/startup/bspreset.c
+++ b/c/src/lib/libbsp/arm/smdk2410/startup/bspreset.c
@@ -17,6 +17,8 @@ void bsp_reset(void)
 #else
   /* XXX TODO this code is copied from gp32.. move it to a shared place */
   rtems_interrupt_level level;
+
+  (void) level;
   rtems_interrupt_disable(level);
   /* disable mmu, invalide i-cache and call swi #4 */
   __asm__ volatile(""



More information about the vc mailing list