mirror of https://gitlab.freedesktop.org/mesa/mesa
mesa: fixes -Werror,-Wunused-but-set-variable for clang-15 in program_parse.y
error message: src/mesa/program/program_parse.tab.c:1952:9: error: variable 'yynerrs' set but not used [-Werror,-Wunused-but-set-variable] int yynerrs = 0; ^ Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19969>
This commit is contained in:
parent
77c29bfffd
commit
55b35e6193
|
@ -2061,6 +2061,7 @@ ALIAS_statement: ALIAS IDENTIFIER '=' USED_IDENTIFIER
|
|||
} else {
|
||||
_mesa_symbol_table_add_symbol(state->st, $2, target);
|
||||
}
|
||||
(void)yynerrs;
|
||||
}
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in New Issue