Build fix: POD static_assert check fails on lttng_event_exclusions
[lttng-tools.git] / src / common / filter / filter-parser.ypp
index fedf0e830b433685830acbe6ea1694432874c71d..e3fae6394fcaa0cb6a76eaec0191829714d14045 100644 (file)
@@ -22,6 +22,7 @@
 #include "memstream.hpp"
 
 #include <common/compat/errno.hpp>
+#include <common/compiler.hpp>
 #include <common/macros.hpp>
 
 #define WIDTH_u64_SCANF_IS_A_BROKEN_API        "20"
@@ -62,7 +63,7 @@ void yyrestart(FILE * in_str, yyscan_t parser_ctx);
 struct gc_string {
        struct cds_list_head gc;
        size_t alloclen;
-       char s[];
+       char s[LTTNG_FLEXIBLE_ARRAY_MEMBER_LENGTH];
 };
 
 static
This page took 0.023521 seconds and 4 git commands to generate.