[PATCH 09/11] powerpc/shared/startup/panic.c: Fix set but not used warning

Joel Sherrill joel.sherrill at oarcorp.com
Thu Oct 16 14:28:27 UTC 2014


---
 c/src/lib/libbsp/powerpc/shared/startup/panic.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/c/src/lib/libbsp/powerpc/shared/startup/panic.c b/c/src/lib/libbsp/powerpc/shared/startup/panic.c
index f832054..bff7aeb 100644
--- a/c/src/lib/libbsp/powerpc/shared/startup/panic.c
+++ b/c/src/lib/libbsp/powerpc/shared/startup/panic.c
@@ -32,6 +32,8 @@ void _BSP_Fatal_error(unsigned int v)
   const char *err = 0;
 
   rtems_interrupt_disable(flags);
+  (void) flags; /* avoid set but not used warning */
+
   printk("%s\n",_RTEMS_version);
   printk("FATAL ERROR:\n");
   printk("Internal error: %s\n", ISITNL? "Yes":"No");
-- 
1.9.3




More information about the devel mailing list