Re: [OpenOCD-devel] empty while loop

2018-08-20 Thread Andreas Fritiofson
On Mon, Aug 20, 2018 at 4:06 PM, Tomas Vanek via OpenOCD-devel < openocd-devel@lists.sourceforge.net> wrote: > On 20.08.2018 15:42, Andreas Fritiofson (Code Review) wrote: > >> Line 66:while (!(*((volatile unsigned *)CMNSR) & TEND)); >> The style check complains that this empty while loop

[OpenOCD-devel] empty while loop

2018-08-20 Thread Tomas Vanek via OpenOCD-devel
On 20.08.2018 15:42, Andreas Fritiofson (Code Review) wrote: Line 66:while (!(*((volatile unsigned *)CMNSR) & TEND)); The style check complains that this empty while loop should look like this: while (...) ; This should be mentioned in the style guide. Really not intuitive...