From 9160a9eb2662fe08cac68618544203f030a8ce08 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 27 Jul 2023 16:42:51 +1000 Subject: [PATCH] parse: avoid -Werror=unused-but-set-variable bison seems to generate a yyparse() with one unsed but set variable in it. Avoid that. Part-of: --- subprojects/gstreamer/gst/parse/grammar.y.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gstreamer/gst/parse/grammar.y.in b/subprojects/gstreamer/gst/parse/grammar.y.in index a3a67d4a3c..54a0b3e6d8 100644 --- a/subprojects/gstreamer/gst/parse/grammar.y.in +++ b/subprojects/gstreamer/gst/parse/grammar.y.in @@ -1223,6 +1223,9 @@ static int yyerror (void *scanner, graph_t *graph, const char *s); element: IDENTIFIER { $$ = gst_parse_element_new(); $$->factory_name = $1; + + /* silence unused but set warnings/errors */ + (void) yynerrs; } | element PRESET { $$->presets = g_slist_append ($$->presets, $2);