[rtems commit] score/cpu/i386/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:    6c8e0dc81c093ccb88e40e4119c5175f5afc35f3
Changeset: http://git.rtems.org/rtems/commit/?id=6c8e0dc81c093ccb88e40e4119c5175f5afc35f3

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Sun Oct 19 21:45:37 2014 -0500

score/cpu/i386/rtems/score/cpu.h: Fix set but not used warning

---

 cpukit/score/cpu/i386/rtems/score/cpu.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h b/cpukit/score/cpu/i386/rtems/score/cpu.h
index e0ab037..13d31a4 100644
--- a/cpukit/score/cpu/i386/rtems/score/cpu.h
+++ b/cpukit/score/cpu/i386/rtems/score/cpu.h
@@ -472,6 +472,7 @@ uint32_t   _CPU_ISR_Get_level( void );
   do { \
     uint32_t   _stack; \
     \
+    (void) _is_fp; /* avoid warning for being unused */ \
     if ( (_isr) ) (_the_context)->eflags = CPU_EFLAGS_INTERRUPTS_OFF; \
     else          (_the_context)->eflags = CPU_EFLAGS_INTERRUPTS_ON; \
     \



More information about the vc mailing list