mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix compiler warning about non initialised variable (GH-11806)
This commit is contained in:
parent
4207907c2b
commit
164686f33a
1 changed files with 2 additions and 2 deletions
|
@ -1366,7 +1366,7 @@ handle_keywordonly_args(struct compiling *c, const node *n, int start,
|
|||
PyObject *argname;
|
||||
node *ch;
|
||||
expr_ty expression, annotation;
|
||||
arg_ty arg;
|
||||
arg_ty arg = NULL;
|
||||
int i = start;
|
||||
int j = 0; /* index for kwdefaults and kwonlyargs */
|
||||
|
||||
|
@ -1462,7 +1462,7 @@ ast_for_arguments(struct compiling *c, const node *n)
|
|||
int nposdefaults = 0, found_default = 0;
|
||||
asdl_seq *posargs, *posdefaults, *kwonlyargs, *kwdefaults;
|
||||
arg_ty vararg = NULL, kwarg = NULL;
|
||||
arg_ty arg;
|
||||
arg_ty arg = NULL;
|
||||
node *ch;
|
||||
|
||||
if (TYPE(n) == parameters) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue