On Tue, 27 Sept 2022 at 15:53, Paolo Bonzini <pbonz...@redhat.com> wrote: > > The big change that comes in here is that several structs have been > switched to flexible array members. This is compatible with > QEMU's use of this structs in constructs such as: > > struct { > struct kvm_msrs info; > struct kvm_msr_entry entries[1]; > } msr_data = { > .info.nmsrs = 1, > .entries[0].index = index, > };
This won't build on clang -- see the patchset https://patchew.org/QEMU/20220915091035.3897-1-chenyi.qi...@intel.com/ which includes an initial patch to disable that warning first. -- PMM