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:
Yonggang Luo 2022-11-04 20:51:40 +08:00 committed by Marge Bot
parent 77c29bfffd
commit 55b35e6193
1 changed files with 1 additions and 0 deletions

View File

@ -2061,6 +2061,7 @@ ALIAS_statement: ALIAS IDENTIFIER '=' USED_IDENTIFIER
} else {
_mesa_symbol_table_add_symbol(state->st, $2, target);
}
(void)yynerrs;
}
;