From cc883d1317afe73ecd8ce4feb513bd49270ed5c7 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Sun, 1 Apr 2012 18:24:08 +0000 Subject: [PATCH] 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 --- 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 { -- 2.39.5