On Mon, 26 Oct 2020 at 15:13, Paolo Bonzini <pbonz...@redhat.com> wrote: > This one seems okay because the union constrains the size to 4K. If > "[0]" is enough to shut up the compiler, I'd say do that.
Do you mean converting a C flexible array member (declared as "foo[]") into a gcc zero-length array (declared as "foo[0]") ? That seems like it would be going backwards from the direction we started in with commits f7795e4096d8bd1c and 880a7817c1a82 of preferring flexible arrays to the GNU extension, so it's maybe not ideal, but I guess it's expedient. thanks -- PMM