[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [PATCH] Build fails



On 12/16/13 14:23, Vincent Rivière wrote:
On 14/12/2013 02:03, Alan Hourihane wrote:
Can you add "volatile" to the "long desttmp[2];" declaration for now ?

The classic way to silence "unused variable" warning is to use the UNUSED() macro somewhere in the function body.

But it's not unused. It's reading a hardware register, whereas volatile is the right choice.

Alan.