We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
http://www.keil.com/support/man/docs/ca/ca_c35.htm
How to rewrite to make it conform to the current style?
I would guess that you need to specify what type of pointer (far, huge, etc) your function can return.