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,
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
> __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.:
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)
{
//
}
//=