X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Ffilter%2Ffilter-parser.ypp;h=e3fae6394fcaa0cb6a76eaec0191829714d14045;hb=40ebe2193c00a3b67294ad38b47537cdd68b0e82;hp=fedf0e830b433685830acbe6ea1694432874c71d;hpb=45cc2527c1b679884570130eca8f285b2a9a8406;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