From: richardbarry Date: Sun, 1 Apr 2012 18:24:08 +0000 (+0000) Subject: Remove compiler warning in CCS MSP430X port. X-Git-Tag: V7.1.1~39 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cc883d1317afe73ecd8ce4feb513bd49270ed5c7;p=freertos Remove compiler warning in CCS MSP430X port. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1707 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- 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 {