[PATCH 08/34] score/cpu/lm32/rtems/score/cpu.h: Fix set but not used warning

Joel Sherrill joel.sherrill at oarcorp.com
Mon Oct 20 20:34:10 UTC 2014


---
 cpukit/score/cpu/lm32/rtems/score/cpu.h | 3 +++
 1 file changed, 3 insertions(+)

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; \
-- 
1.9.3




More information about the devel mailing list