This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

warning C35 : uses old-style declarator

Hi , I'm using CARM
Below is my function which is old-style.

warning C35 : uses old-style declarator

xTIME *pxRtcCreateTimeStruct(portCHAR day,hour,min,sec)
{ xTIME *pxTimeStruct; pxTimeStruct = ( xTIME * ) pvPortMalloc( sizeof( xTIME ) );

pxTimeStruct->day = day; pxTimeStruct->hour = hour; pxTimeStruct->min = min; pxTimeStruct->sec = sec; return pxTimeStruct;
}

My question is, how do I get rid of the warning? How to rewrite to make it conform to the current style?

Thank you

0