Issue #19474: Argument Clinic now always specifies a default value for

variables in option groups, to prevent "uninitialized value" warnings.
This commit is contained in:
Larry Hastings 2013-11-20 09:13:52 -08:00
parent f3bf35eee4
commit abc716b058
2 changed files with 41 additions and 9 deletions

View file

@ -608,11 +608,11 @@ curses_window_addch(PyObject *self, PyObject *args)
{
PyObject *return_value = NULL;
int group_left_1 = 0;
int x;
int y;
int x = 0;
int y = 0;
PyObject *ch;
int group_right_1 = 0;
long attr;
long attr = 0;
switch (PyTuple_Size(args)) {
case 1:
@ -646,7 +646,7 @@ curses_window_addch(PyObject *self, PyObject *args)
static PyObject *
curses_window_addch_impl(PyObject *self, int group_left_1, int x, int y, PyObject *ch, int group_right_1, long attr)
/*[clinic checksum: 98ade780397a48d0be48439763424b3b00c92089]*/
/*[clinic checksum: 094d012af1019387c0219a9c0bc76e90729c833f]*/
{
PyCursesWindowObject *cwself = (PyCursesWindowObject *)self;
int coordinates_group = group_left_1;