Commit 164686f3 authored by Pablo Galindo's avatar Pablo Galindo Committed by GitHub

Fix compiler warning about non initialised variable (GH-11806)

parent 4207907c
...@@ -1366,7 +1366,7 @@ handle_keywordonly_args(struct compiling *c, const node *n, int start, ...@@ -1366,7 +1366,7 @@ handle_keywordonly_args(struct compiling *c, const node *n, int start,
PyObject *argname; PyObject *argname;
node *ch; node *ch;
expr_ty expression, annotation; expr_ty expression, annotation;
arg_ty arg; arg_ty arg = NULL;
int i = start; int i = start;
int j = 0; /* index for kwdefaults and kwonlyargs */ int j = 0; /* index for kwdefaults and kwonlyargs */
...@@ -1462,7 +1462,7 @@ ast_for_arguments(struct compiling *c, const node *n) ...@@ -1462,7 +1462,7 @@ ast_for_arguments(struct compiling *c, const node *n)
int nposdefaults = 0, found_default = 0; int nposdefaults = 0, found_default = 0;
asdl_seq *posargs, *posdefaults, *kwonlyargs, *kwdefaults; asdl_seq *posargs, *posdefaults, *kwonlyargs, *kwdefaults;
arg_ty vararg = NULL, kwarg = NULL; arg_ty vararg = NULL, kwarg = NULL;
arg_ty arg; arg_ty arg = NULL;
node *ch; node *ch;
if (TYPE(n) == parameters) { if (TYPE(n) == parameters) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment