mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
fix warnings by adding more const (GH-12924)
This commit is contained in:
parent
574913479f
commit
09415ff0eb
6 changed files with 18 additions and 23 deletions
|
@ -644,7 +644,6 @@ validate_node(node *tree)
|
|||
{
|
||||
int type = TYPE(tree);
|
||||
int nch = NCH(tree);
|
||||
dfa *nt_dfa;
|
||||
state *dfa_state;
|
||||
int pos, arc;
|
||||
|
||||
|
@ -654,7 +653,7 @@ validate_node(node *tree)
|
|||
PyErr_Format(parser_error, "Unrecognized node type %d.", TYPE(tree));
|
||||
return 0;
|
||||
}
|
||||
nt_dfa = &_PyParser_Grammar.g_dfa[type];
|
||||
const dfa *nt_dfa = &_PyParser_Grammar.g_dfa[type];
|
||||
REQ(tree, nt_dfa->d_type);
|
||||
|
||||
/* Run the DFA for this nonterminal. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue