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

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


---
 cpukit/score/cpu/i386/rtems/score/cpu.h | 1 +
 1 file changed, 1 insertion(+)

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




More information about the devel mailing list