Re: [PATCH][next] rpmsg: glink: Avoid -Wflex-array-member-not-at-end warnings

From: Bjorn Andersson
Date: Fri Sep 13 2024 - 17:12:52 EST



On Wed, 07 Aug 2024 09:19:07 -0600, Gustavo A. R. Silva wrote:
> -Wflex-array-member-not-at-end was introduced in GCC-14, and we are
> getting ready to enable it, globally.
>
> So, in order to avoid ending up with a flexible-array member in the
> middle of multiple other structs, we use the `__struct_group()`
> helper to create a new tagged `struct glink_msg_hdr`. This structure
> groups together all the members of the flexible `struct glink_msg`
> except the flexible array.
>
> [...]

Applied, thanks!

[1/1] rpmsg: glink: Avoid -Wflex-array-member-not-at-end warnings
commit: c1ddb29709e675ea2a406e3114dbf5c8c705dd59

Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>