X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Fcommon%2Fmetadata%2Fparser.ypp;fp=src%2Fplugins%2Fctf%2Fcommon%2Fmetadata%2Fparser.ypp;h=e475436ed8f987a75b00fda0bcd0c59f7d37621f;hp=b644b5d1ec68713f10bb68b5ac644d1748f8bc79;hb=2ea09241f07f1dfd4b6fd0f2f296a10142fda7d2;hpb=42fc5ffd68859cf70ab45e2091975e890813ed54 diff --git a/src/plugins/ctf/common/metadata/parser.ypp b/src/plugins/ctf/common/metadata/parser.ypp index b644b5d1..e475436e 100644 --- a/src/plugins/ctf/common/metadata/parser.ypp +++ b/src/plugins/ctf/common/metadata/parser.ypp @@ -28,6 +28,12 @@ #include "parser-wrap.hpp" +/* + * Avoid warning about "yynerrs" being unused, seen with bison 3.5.1 + clang 15 + * on Ubuntu 20.04. + */ +BT_DIAG_IGNORE_UNUSED_BUT_SET_VARIABLE + /* Join two lists, put "add" at the end of "head". */ static inline void _bt_list_splice_tail (struct bt_list_head *add, struct bt_list_head *head)