[En-Nut-Discussion] Hardware Register Access Using Volatile Pointer
Harald Kipp
harald.kipp at egnite.de
Tue Apr 26 14:26:16 CEST 2011
On 4/26/2011 12:59 PM, Bernd Walter wrote:
> On Tue, Apr 26, 2011 at 09:33:26AM +0200, Harald Kipp wrote:
>> int dummy;
>> ...
>> dummy = inr(TC0_SR);
>
> (void) dummy;
What? Is this some secret in the language I'm not aware of, or just a
typo, meaning
(void) inr(TC0_SR);
Still I can't follow. GCC 4.6 doesn't like unused local variables, it
doesn't require to to cast the function result.
Regards,
Harald
More information about the En-Nut-Discussion
mailing list