[rtems commit] score/cpu/lm32/rtems/score/cpu.h: Fix set but not used warning
Joel Sherrill
joel at rtems.org
Tue Oct 21 14:36:31 UTC 2014
Module: rtems
Branch: master
Commit: a9c45a048a3101984445f641ccebb6896fcc87bd
Changeset: http://git.rtems.org/rtems/commit/?id=a9c45a048a3101984445f641ccebb6896fcc87bd
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Sun Oct 19 21:45:51 2014 -0500
score/cpu/lm32/rtems/score/cpu.h: Fix set but not used warning
---
cpukit/score/cpu/lm32/rtems/score/cpu.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/cpukit/score/cpu/lm32/rtems/score/cpu.h b/cpukit/score/cpu/lm32/rtems/score/cpu.h
index 17fa33c..67d7ebe 100644
--- a/cpukit/score/cpu/lm32/rtems/score/cpu.h
+++ b/cpukit/score/cpu/lm32/rtems/score/cpu.h
@@ -826,6 +826,9 @@ extern char _gp[];
_isr, _entry_point, _is_fp, _tls_area ) \
do { \
uint32_t _stack = (uint32_t)(_stack_base) + (_size) - 4; \
+ \
+ (void) _is_fp; /* avoid warning for being unused */ \
+ (void) _isr; /* avoid warning for being unused */ \
(_the_context)->gp = (uint32_t)_gp; \
(_the_context)->fp = (uint32_t)_stack; \
(_the_context)->sp = (uint32_t)_stack; \
More information about the vc
mailing list