mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
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:
parent
3679713519
commit
9160a9eb26
1 changed files with 3 additions and 0 deletions
|
@ -1223,6 +1223,9 @@ static int yyerror (void *scanner, graph_t *graph, const char *s);
|
||||||
element: IDENTIFIER {
|
element: IDENTIFIER {
|
||||||
$$ = gst_parse_element_new();
|
$$ = gst_parse_element_new();
|
||||||
$$->factory_name = $1;
|
$$->factory_name = $1;
|
||||||
|
|
||||||
|
/* silence unused but set warnings/errors */
|
||||||
|
(void) yynerrs;
|
||||||
}
|
}
|
||||||
| element PRESET {
|
| element PRESET {
|
||||||
$$->presets = g_slist_append ($$->presets, $2);
|
$$->presets = g_slist_append ($$->presets, $2);
|
||||||
|
|
Loading…
Reference in a new issue