Re: [Qemu-block] [PATCH] nbd/server: Silence gcc false positive

2018-06-22 Thread Peter Maydell
On 22 June 2018 at 13:59, Peter Maydell wrote: > On 22 June 2018 at 13:58, Eric Blake wrote: >> The code has a while() loop that always initialized 'end', and >> the loop always executes at least once (as evidenced by the assert() >> just prior to the loop). But some versions of gcc still

Re: [Qemu-block] [PATCH] nbd/server: Silence gcc false positive

2018-06-22 Thread Peter Maydell
On 22 June 2018 at 13:58, Eric Blake wrote: > The code has a while() loop that always initialized 'end', and > the loop always executes at least once (as evidenced by the assert() > just prior to the loop). But some versions of gcc still complain > that 'end' is used uninitialized, so silence