mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 08:28:53 +02:00
This currently probably does nothing, but in future both gcc and clang
will support the annotation it uses, and use that to do compile-time
bounds checking on flexible arrays.
See https://people.kernel.org/kees/bounded-flexible-arrays-in-c
It’s the same implementation as used in the kernel:
805d849d7c/include/linux/compiler_attributes.h (L97-L108)
.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>