X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2Ffilter%2Ffilter-parser.ypp;h=e3fae6394fcaa0cb6a76eaec0191829714d14045;hb=8a5e382450359a884bbe594547dfb810e9196d0e;hp=fedf0e830b433685830acbe6ea1694432874c71d;hpb=9f2a20195dbdc0e69e1e33abb642242ec7c3e244;p=lttng-tools.git diff --git a/src/common/filter/filter-parser.ypp b/src/common/filter/filter-parser.ypp index fedf0e830..e3fae6394 100644 --- a/src/common/filter/filter-parser.ypp +++ b/src/common/filter/filter-parser.ypp @@ -22,6 +22,7 @@ #include "memstream.hpp" #include +#include #include #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