Re: [avr-gcc-list] Some issues with array of pointers to functions

2014-06-16 Thread Royce Pereira
Thank you, Georg-Johann, I will try this and report. :) On Mon, Jun 16, 2014 at 3:19 PM, Georg-Johann Lay wrote: > Am 06/13/2014 12:06 PM, schrieb Royce Pereira: > >> Hi all, >> >> Continuing with the latest avr-gcc, and playing with the new '__flash' >> qualifier, I'm facing some new warnings,

Re: [avr-gcc-list] Some issues with array of pointers to functions

2014-06-16 Thread Georg-Johann Lay
Am 06/13/2014 12:06 PM, schrieb Royce Pereira: Hi all, Continuing with the latest avr-gcc, and playing with the new '__flash' qualifier, I'm facing some new warnings, not seen before. I have this: //=== void func1(void) { // } //=== void fu

Re: [avr-gcc-list] Some issues with array of pointers to functions

2014-06-13 Thread Bob Paddock
> __flash void (*funcArray[])(void) = { func1, func2, func3 } ; The issues is when they are in the table they are considered data, not function pointers, by C's abstract machine. >From my source code when I ran into the issue. The nasty double cast is needed to make the warning go away.:

[avr-gcc-list] Some issues with array of pointers to functions

2014-06-13 Thread Royce Pereira
Hi all, Continuing with the latest avr-gcc, and playing with the new '__flash' qualifier, I'm facing some new warnings, not seen before. I have this: //=== void func1(void) { // } //=== void func2(void) { // } //=