[Icc-avr] How to get rid of Warning 'Illegal storage class const '
Ivan Vernot
ivanv at realtimedesigns.com.au
Mon Apr 7 17:58:25 PDT 2008
Hello All,
I have just upgraded to latest ICCAVR 7.16A and am faced with 'upgrading' my
code to take into account the new __flash keyword
To get something compiling I enabled 'Treat 'const' as '_flash' option in
Complier options but I get the following warnings never-the-less.
!W
D:\Real_Time_Designs\Clients\CathRx\3DREMO~1\Source\usart128.h(122):[warning
] Illegal storage class const for parameter 'data'. Storage class removed.
Complains about the following function prototype
extern void USART1_cputch(const INT8U data);
and similarly
!W
D:\Real_Time_Designs\Clients\CathRx\3DREMO~1\Source\usart128.c(124):[warning
] Illegal storage class const for parameter 'data'. Storage class removed.
Complains about the function
void USART1_cputch(const INT8U data)
{
}
1. How do I stop it complaining about code that compiled without warning
previously?
2. Is it safe to ignore these warnings?
3. Is there anything documented/discussed as to a possible strategy to
upgrade existing code?
Thank you in advance
Ivan Vernot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080408/525d5454/attachment.html
More information about the Icc-avr
mailing list