[PATCH 50/54] m68k/mcf5225x: Fix warnings

Joel Sherrill joel.sherrill at oarcorp.com
Mon Oct 13 15:37:34 UTC 2014


---
 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++) {
-- 
1.9.3




More information about the devel mailing list