[rtems commit] arm: Fix set by but not used warning
Sebastian Huber
sebh at rtems.org
Mon Dec 16 14:13:16 UTC 2013
Module: rtems
Branch: master
Commit: f859d20ccf015478d0c93f296dec43629227a8bc
Changeset: http://git.rtems.org/rtems/commit/?id=f859d20ccf015478d0c93f296dec43629227a8bc
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Dec 16 14:45:26 2013 +0100
arm: Fix set by but not used warning
---
cpukit/score/cpu/arm/rtems/score/cpu.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/cpukit/score/cpu/arm/rtems/score/cpu.h b/cpukit/score/cpu/arm/rtems/score/cpu.h
index 205e41f..2d9b5d5 100644
--- a/cpukit/score/cpu/arm/rtems/score/cpu.h
+++ b/cpukit/score/cpu/arm/rtems/score/cpu.h
@@ -422,7 +422,8 @@ void _CPU_Context_Initialize(
uint32_t _level; \
uint32_t _error = _err; \
_CPU_ISR_Disable( _level ); \
- __asm__ volatile ("mov r0, %0\n" \
+ (void) _level; \
+ __asm__ volatile ("mov r0, %0\n" \
: "=r" (_error) \
: "0" (_error) \
: "r0" ); \
More information about the vc
mailing list