Build fix: POD static_assert check fails on lttng_event_exclusions
[lttng-tools.git] / src / common / sessiond-comm / sessiond-comm.hpp
index 3d4eb6b8a070a324f213003be96f36a31209d2df..e9cb85a05f6a30715b9928daee2aec537069bea4 100644 (file)
@@ -22,6 +22,7 @@
 #include <lttng/trigger/trigger-internal.hpp>
 #include <lttng/rotate-internal.hpp>
 #include <common/compat/socket.hpp>
+#include <common/compiler.hpp>
 #include <common/uri.hpp>
 #include <common/defaults.hpp>
 #include <common/uuid.hpp>
@@ -563,7 +564,7 @@ struct lttng_bytecode {
 struct lttng_event_exclusion {
        uint32_t count;
        char padding[LTTNG_EVENT_EXCLUSION_PADDING];
-       char names[][LTTNG_SYMBOL_NAME_LEN];
+       char names[LTTNG_FLEXIBLE_ARRAY_MEMBER_LENGTH][LTTNG_SYMBOL_NAME_LEN];
 } LTTNG_PACKED;
 
 #define LTTNG_EVENT_EXCLUSION_NAME_AT(_exclusion, _i) \
This page took 0.023773 seconds and 4 git commands to generate.