Re: [PATCH v2 1/7] libasm: Fix xdefault_pattern initialization

2023-02-09 Thread Mark Wielaard
Hi Ilya, On Wed, 2023-02-08 at 20:52 +0100, Ilya Leoshkevich wrote: > clang complains: > > asm_newscn.c:48:22: error: field 'pattern' with variable sized type > 'struct FillPattern' not at the end of a struct or class is a GNU extension > [-Werror,-Wgnu-variable-sized-type-not-at-end] >

[PATCH v2 1/7] libasm: Fix xdefault_pattern initialization

2023-02-08 Thread Ilya Leoshkevich via Elfutils-devel
clang complains: asm_newscn.c:48:22: error: field 'pattern' with variable sized type 'struct FillPattern' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end] struct FillPattern pattern; ^ Fix by using a union i