Re: [Qemu-devel] [PATCH v2 3/7] chardev: Use goto/label instead of do/break/while(0)

2017-12-03 Thread Marc-André Lureau
On Sat, Dec 2, 2017 at 12:24 AM, Eric Blake wrote: > Use of a do/while(0) control flow in order to permit an early break > is an unusual paradigm, and triggers a false positive with a planned > future syntax check against 'while (0);'. Rewrite the code to use a > goto instead.

[Qemu-devel] [PATCH v2 3/7] chardev: Use goto/label instead of do/break/while(0)

2017-12-01 Thread Eric Blake
Use of a do/while(0) control flow in order to permit an early break is an unusual paradigm, and triggers a false positive with a planned future syntax check against 'while (0);'. Rewrite the code to use a goto instead. This patch temporarily keeps an extra level of indentation to highlight the