DECLARE_FLEX_ARRAY can be used inside a structure. On FreeBSD due to
-Wgnu-variable-sized-type-not-at-end this yields an error. Use [0]
instead of [] to overcome this.
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential D34350
LinuxKPI: change DECLARE_FLEX_ARRAY() bz on Feb 22 2022, 10:51 PM. Authored by Tags None Referenced Files
Subscribers
Details
DECLARE_FLEX_ARRAY can be used inside a structure. On FreeBSD due to Sponsored by: The FreeBSD Foundation
Diff Detail
Event TimelineComment Actions I think there are some issues with [0] aswell, but I don't remember exactly right now. |