[rtems commit] powerpc/shared/startup/panic.c: Fix set but not used warning

Joel Sherrill joel at rtems.org
Sun Oct 19 21:51:55 UTC 2014


Module:    rtems
Branch:    master
Commit:    aa97f9941292f82f15fc007623cb329f6c49a8e7
Changeset: http://git.rtems.org/rtems/commit/?id=aa97f9941292f82f15fc007623cb329f6c49a8e7

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed Oct 15 18:37:11 2014 -0500

powerpc/shared/startup/panic.c: Fix set but not used warning

---

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

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");



More information about the vc mailing list