Re: [Qemu-block] [Qemu-devel] [PATCH] scsi: Address spurious clang warning

2018-11-27 Thread John Snow
On 11/27/18 2:02 PM, Eric Blake wrote: > On 11/27/18 12:49 PM, John Snow wrote: >> Some versions of Clang prior to 6.0 (and some builds of clang after, >> such as 6.0.1-2.fc28) fail to recognize { 0 } as a valid initializer >> for a struct with subobjects when -Wmissing-braces is enabled. >> >>

Re: [Qemu-block] [Qemu-devel] [PATCH] scsi: Address spurious clang warning

2018-11-27 Thread Peter Maydell
On Tue, 27 Nov 2018 at 19:02, Eric Blake wrote: > > On 11/27/18 12:49 PM, John Snow wrote: > > Some versions of Clang prior to 6.0 (and some builds of clang after, > > such as 6.0.1-2.fc28) fail to recognize { 0 } as a valid initializer > > for a struct with subobjects when -Wmissing-braces is

Re: [Qemu-block] [Qemu-devel] [PATCH] scsi: Address spurious clang warning

2018-11-27 Thread Eric Blake
On 11/27/18 12:49 PM, John Snow wrote: Some versions of Clang prior to 6.0 (and some builds of clang after, such as 6.0.1-2.fc28) fail to recognize { 0 } as a valid initializer for a struct with subobjects when -Wmissing-braces is enabled. https://bugs.llvm.org/show_bug.cgi?id=21689 and