[rtems commit] bsp/t32mppc: Fix warnings

Sebastian Huber sebh at rtems.org
Mon Dec 15 10:54:49 UTC 2014


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Dec 15 11:49:10 2014 +0100

bsp/t32mppc: Fix warnings

---

 c/src/lib/libbsp/powerpc/t32mppc/include/bsp.h      | 6 ++++--
 c/src/lib/libbsp/powerpc/t32mppc/startup/bspstart.c | 7 ++++---
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/t32mppc/include/bsp.h b/c/src/lib/libbsp/powerpc/t32mppc/include/bsp.h
index f8f540a..4ce3877 100644
--- a/c/src/lib/libbsp/powerpc/t32mppc/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/t32mppc/include/bsp.h
@@ -1,8 +1,8 @@
 /*
- * Copyright (c) 2012 embedded brains GmbH.  All rights reserved.
+ * Copyright (c) 2012-2014 embedded brains GmbH.  All rights reserved.
  *
  *  embedded brains GmbH
- *  Obere Lagerstr. 30
+ *  Dornierstr. 4
  *  82178 Puchheim
  *  Germany
  *  <rtems at embedded-brains.de>
@@ -20,6 +20,8 @@
 #ifndef ASM
 
 #include <rtems.h>
+#include <rtems/clockdrv.h>
+#include <rtems/console.h>
 
 #include <bsp/default-initial-extension.h>
 
diff --git a/c/src/lib/libbsp/powerpc/t32mppc/startup/bspstart.c b/c/src/lib/libbsp/powerpc/t32mppc/startup/bspstart.c
index 3e766e1..f3e1474 100644
--- a/c/src/lib/libbsp/powerpc/t32mppc/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/t32mppc/startup/bspstart.c
@@ -1,8 +1,8 @@
 /*
- * Copyright (c) 2012 embedded brains GmbH.  All rights reserved.
+ * Copyright (c) 2012-2014 embedded brains GmbH.  All rights reserved.
  *
  *  embedded brains GmbH
- *  Obere Lagerstr. 30
+ *  Dornierstr. 4
  *  82178 Puchheim
  *  Germany
  *  <rtems at embedded-brains.de>
@@ -38,7 +38,7 @@ void BSP_panic(char *s)
   rtems_interrupt_level level;
 
   rtems_interrupt_disable(level);
-  (void) level; /* avoid set but not used warning */
+  (void) level;
 
   printk("%s PANIC %s\n", rtems_get_version_string(), s);
 
@@ -52,6 +52,7 @@ void _BSP_Fatal_error(unsigned n)
   rtems_interrupt_level level;
 
   rtems_interrupt_disable(level);
+  (void) level;
 
   printk("%s PANIC ERROR %u\n", rtems_get_version_string(), n);
 




More information about the vc mailing list