Mercurial > cpython-lru_cache-weakref
diff Modules/_cursesmodule.c @ 4600:d36250aefb82 legacy-trunk
Keep gcc -Wall happy.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 05 Dec 1996 23:43:35 +0000 |
| parents | e1df90205a33 |
| children | c5d7b6fcee03 |
line wrap: on
line diff
--- a/Modules/_cursesmodule.c Thu Dec 05 23:41:26 1996 +0000 +++ b/Modules/_cursesmodule.c Thu Dec 05 23:43:35 1996 +0000 @@ -168,9 +168,13 @@ WINDOW *pad; } PyCursesPadObject; +#if 0 staticforward PyTypeObject PyCursesScreen_Type; +#endif staticforward PyTypeObject PyCursesWindow_Type; +#if 0 staticforward PyTypeObject PyCursesPad_Type; +#endif #define PyCursesScreen_Check(v) ((v)->ob_type == &PyCursesScreen_Type) #define PyCursesWindow_Check(v) ((v)->ob_type == &PyCursesWindow_Type) @@ -386,7 +390,7 @@ int rtn; int x, y; int ch; - int attr, attr_old; + int attr, attr_old = 0; int use_xy = FALSE, use_attr = FALSE; switch (ARG_COUNT(arg)) { @@ -436,7 +440,7 @@ int rtn; int x, y; int ch; - int attr, attr_old; + int attr, attr_old = 0; int use_xy = TRUE, use_attr = FALSE; switch (ARG_COUNT(arg)) { @@ -542,7 +546,7 @@ int rtn; int x, y; char *str; - int attr, attr_old; + int attr, attr_old = 0; int use_xy = FALSE, use_attr = FALSE; switch (ARG_COUNT(arg)) { @@ -1116,6 +1120,7 @@ /* -------------------------------------------------------*/ +#if 0 static PyTypeObject PyCursesScreen_Type = { PyObject_HEAD_INIT(&PyType_Type) 0, /*ob_size*/ @@ -1134,6 +1139,7 @@ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ }; +#endif static PyTypeObject PyCursesWindow_Type = { PyObject_HEAD_INIT(&PyType_Type) @@ -1154,6 +1160,7 @@ 0, /*tp_hash*/ }; +#if 0 static PyTypeObject PyCursesPad_Type = { PyObject_HEAD_INIT(&PyType_Type) 0, /*ob_size*/ @@ -1172,6 +1179,7 @@ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ }; +#endif /* -------------------------------------------------------*/
