m68k/mcf5225x: Fix warnings

This commit is contained in:
Joel Sherrill
2014-10-12 17:39:59 -05:00
parent 6b514360b8
commit d9c12bb959
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

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