From ab1aa67b08daaa33d5288743c8ed7017717ef994 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Sun, 1 Apr 2012 18:24:08 +0000 Subject: [PATCH] Remove compiler warning in CCS MSP430X port. --- Source/portable/CCS4/MSP430X/port.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/portable/CCS4/MSP430X/port.c b/Source/portable/CCS4/MSP430X/port.c index a5d54753e..3caddcc75 100644 --- a/Source/portable/CCS4/MSP430X/port.c +++ b/Source/portable/CCS4/MSP430X/port.c @@ -98,7 +98,7 @@ void vPortSetupTimerInterrupt( void ); portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters ) { unsigned short *pusTopOfStack; -unsigned long *pulTopOfStack; +unsigned long *pulTopOfStack, ulTemp; /* Place a few bytes of known values on the bottom of the stack. @@ -117,7 +117,8 @@ unsigned long *pulTopOfStack; if( sizeof( pxCode ) == sizeof( unsigned short ) ) { pusTopOfStack = ( unsigned short * ) pxTopOfStack; - *pusTopOfStack = ( unsigned short ) pxCode; + ulTemp = ( unsigned long ) pxCode; + *pusTopOfStack = ( unsigned short ) ulTemp; } else {