Build fix: POD static_assert check fails on lttng_event_exclusions
[lttng-tools.git] / src / common / sessiond-comm / agent.hpp
index 9fcb1f34956be67f4a5329e4a8c5cd9d2158a10f..65d379ec06cde75c6d39545e743572c0a7a0c375 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <stdint.h>
 
+#include <common/compiler.hpp>
 #include <common/macros.hpp>
 #include <lttng/lttng.h>
 
@@ -87,7 +88,7 @@ struct lttcomm_agent_list_reply_hdr {
 struct lttcomm_agent_list_reply {
        uint32_t nb_event;
        /* List of event name each of them ending by a NULL byte. */
-       char payload[];
+       char payload[LTTNG_FLEXIBLE_ARRAY_MEMBER_LENGTH];
 } LTTNG_PACKED;
 
 #endif /* AGENT_COMM */
This page took 0.022437 seconds and 4 git commands to generate.