nobody wrote on Tuesday, January 04, 2005:
Hello
I compiled your RTOS 2.5.4 for AVR-IAR but this warnings occured i n Tasks.c file,how overcome these bugs?(the problem is to be "signed" or not to be)
I used IAR v3.20 for AVR
static void prvInitialiseTCBVariables( tskTCB *pxTCB, unsigned portSHORT usStackDepth, const signed portCHAR * const pcName, unsigned portCHAR ucPriority )
{
pxTCB->usStackDepth = usStackDepth;
/* Make sure the name is not too long before copying it into the TCB. */
—> if( strlen( pcName ) < ( unsigned portSHORT ) tskMAX_TASK_NAME_LEN )
{
portENTER_CRITICAL();
—> strcpy( pxTCB->pcTaskName, pcName );
portEXIT_CRITICAL();
}
else
{
portENTER_CRITICAL();
—> strncpy( pxTCB->pcTaskName, pcName, ( unsigned portSHORT ) tskMAX_TASK_NAME_LEN );
portEXIT_CRITICAL();
pxTCB->pcTaskName[ ( unsigned portSHORT ) tskMAX_TASK_NAME_LEN - ( unsigned portSHORT ) 1 ] = ‘\0’;
}
Warning[Pe167]: argument of type "signed char const *" is incompatible with parameter of type "char const *"
Warning[Pe167]: argument of type "signed char *" is incompatible with parameter of type "char *"
Warning[Pe167]: argument of type "signed char const *" is incompatible with parameter of type "char const *"
Warning[Pe167]: argument of type "signed char *" is incompatible with parameter of type "char *"
Warning[Pe167]: argument of type "signed char const *" is incompatible with parameter of type "char const *"
Best Regards
Yaaavar