[rtems commit] arm/csb337: Fix warnings
Joel Sherrill
joel at rtems.org
Thu Oct 16 13:50:02 UTC 2014
Module: rtems
Branch: master
Commit: fc137e7d91c001b20cf0187233b4a5b8c9220284
Changeset: http://git.rtems.org/rtems/commit/?id=fc137e7d91c001b20cf0187233b4a5b8c9220284
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Tue Oct 14 16:50:45 2014 -0500
arm/csb337: Fix warnings
---
c/src/lib/libbsp/arm/csb337/console/sed1356.c | 6 ++++--
c/src/lib/libbsp/arm/csb337/startup/bspreset.c | 12 ++++++++----
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/c/src/lib/libbsp/arm/csb337/console/sed1356.c b/c/src/lib/libbsp/arm/csb337/console/sed1356.c
index f86e2a2..f87a322 100644
--- a/c/src/lib/libbsp/arm/csb337/console/sed1356.c
+++ b/c/src/lib/libbsp/arm/csb337/console/sed1356.c
@@ -3,7 +3,9 @@
*
* Based upon code from MicroMonitor 1.17 from http://www.umonfw.com/
* which includes this notice:
- *
+ */
+
+/*
**************************************************************************
* General notice:
* This code is part of a boot-monitor package developed as a generic base
@@ -359,7 +361,7 @@ void sed_writechar(uint8_t c)
}
} /* sed_writechar() */
-void sed_update_fb_offset(void)
+static void sed_update_fb_offset(void)
{
/* write the new sed_fb_offset value */
if (sed_disp_mode_crt) {
diff --git a/c/src/lib/libbsp/arm/csb337/startup/bspreset.c b/c/src/lib/libbsp/arm/csb337/startup/bspreset.c
index f194d43..a4605dc 100644
--- a/c/src/lib/libbsp/arm/csb337/startup/bspreset.c
+++ b/c/src/lib/libbsp/arm/csb337/startup/bspreset.c
@@ -1,6 +1,8 @@
/*
* Cogent CSB337 - AT91RM9200 Startup code
- *
+ */
+
+/*
* Copyright (c) 2004 by Cogent Computer Systems
* Written by Jay Monkman <jtm at lopingdog.com>
*
@@ -19,9 +21,11 @@ void bsp_reset(void)
rtems_interrupt_level level;
rtems_interrupt_disable(level);
+ (void) level; /* avoid set but not used warning */
- /* Enable the watchdog timer, then wait for the world to end. */
- ST_REG(ST_WDMR) = ST_WDMR_RSTEN | 1;
+ /* Enable the watchdog timer, then wait for the world to end. */
+ ST_REG(ST_WDMR) = ST_WDMR_RSTEN | 1;
- while(1);
+ while(1)
+ ;
}
More information about the vc
mailing list