From 5236f4eee38ffc7811239f5851fe085f3d10b874 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 1 Dec 2023 16:55:45 -0500 Subject: [PATCH] Use zero-sized array as last field of event description Signed-off-by: Mathieu Desnoyers --- include/side/abi/event-description.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/side/abi/event-description.h b/include/side/abi/event-description.h index 1c72d4d..9f42524 100644 --- a/include/side/abi/event-description.h +++ b/include/side/abi/event-description.h @@ -60,7 +60,7 @@ struct side_event_description { #define side_event_description_orig_abi_last nr_attr /* End of fields supported in the original ABI. */ - char end[]; /* End with a flexible array to account for extensibility. */ + char end[0]; /* End with a zero-sized array to account for extensibility. */ } SIDE_PACKED; #endif /* SIDE_ABI_EVENT_DESCRIPTION_H */ -- 2.34.1