-
-
Notifications
You must be signed in to change notification settings - Fork 7k
newer gcc requries PROGMEM variables to be consts #1448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
At first glance, th commit looks ok. I did add a few comments to the commit where things weren't entirely clear. |
prog_char shouldn't be used anymore. It's deprecated too. |
All prog_* shouldn't be used anymore, but it will take some effort to hunt them down throughout arduino. I was thinking that defining the macro will at least allow the code to compile and throw warnings to where it should be fixed. |
in unix you can use grep, in windows notepad++ has a "find INTO files", 2013/6/5 Scott Howard [email protected]
|
yes, the best thing to do would be sed 's/prog_char/const char/g' for each I don't have that much time to check and test it all, that's why my On Wed, Jun 5, 2013 at 10:33 AM, lestofante [email protected]:
|
A possible problem with not using prog_char could be that older avr-libc versions require its use (and Arduino still ships these older versions). However, looking at the headers for avr-libc 1.6, it seems that there is not really anything special about these types: http://cvs.savannah.gnu.org/viewvc/avr-libc/avr-libc/include/avr/pgmspace.h?revision=1.40&view=markup&pathrev=avr-libc-1_6-branchpoint They were just convenience types so you wouldn't have to explicitly type "PROGMEM", I think, so dropping them shouldn't cause any problems. |
many examples and libraries fail to build if PROGMEM variables are not declared as consts with newer gcc