[rtems commit] m68k/mcf5225x: Fix warnings

Joel Sherrill joel at rtems.org
Mon Oct 13 16:27:41 UTC 2014


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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Sun Oct 12 17:39:59 2014 -0500

m68k/mcf5225x: Fix warnings

---

 c/src/lib/libbsp/m68k/mcf5225x/console/console.c   |    2 +-
 c/src/lib/libbsp/m68k/mcf5225x/startup/init5225x.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/m68k/mcf5225x/console/console.c b/c/src/lib/libbsp/m68k/mcf5225x/console/console.c
index d094aed..e7ecb3c 100644
--- a/c/src/lib/libbsp/m68k/mcf5225x/console/console.c
+++ b/c/src/lib/libbsp/m68k/mcf5225x/console/console.c
@@ -479,7 +479,7 @@ static int IntUartTaskRead(int minor)
    Description : This reads a character from the internal uart. It returns 
    to the caller without blocking if not character is waiting.
  ***************************************************************************/
-/*static*/
+static
 int IntUartPollRead(int minor)
 {
   if ((MCF_UART_USR(minor) & MCF_UART_USR_RXRDY) == 0)
diff --git a/c/src/lib/libbsp/m68k/mcf5225x/startup/init5225x.c b/c/src/lib/libbsp/m68k/mcf5225x/startup/init5225x.c
index 5f34718..c5bd9fd 100644
--- a/c/src/lib/libbsp/m68k/mcf5225x/startup/init5225x.c
+++ b/c/src/lib/libbsp/m68k/mcf5225x/startup/init5225x.c
@@ -37,7 +37,7 @@ void Init5225x(void)
    * Copy the vector table to RAM 
    */
 
-  if (&_VBR != _INTERRUPT_VECTOR) {
+  if (&_VBR != (void *)_INTERRUPT_VECTOR) {
     sp = (uint32_t *) _INTERRUPT_VECTOR;
     dp = (uint32_t *) &_VBR;
     for (i = 0; i < 256; i++) {



More information about the vc mailing list