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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5110>
This commit is contained in:
Matthew Waters 2023-07-27 16:42:51 +10:00 committed by GStreamer Marge Bot
parent 3679713519
commit 9160a9eb26

View file

@ -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);