diff options
author | Guido van Rossum <guido@python.org> | 1996-12-05 23:43:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-12-05 23:43:35 (GMT) |
commit | a376cc5cc86c62f912886c4002ed1a9b3b213b88 (patch) | |
tree | d505b439cc8f6aac1ba75374b6652857273274c0 /Modules/_cursesmodule.c | |
parent | 60fca2c90fe4d00715f4ae28d68560e67955ab9b (diff) | |
download | cpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.zip cpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.tar.gz cpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.tar.bz2 |
Keep gcc -Wall happy.
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r-- | Modules/_cursesmodule.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 25a18a5..2786854 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -168,9 +168,13 @@ typedef struct { 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 @@ PyCursesWindow_AddCh(self,arg) 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 @@ PyCursesWindow_InsCh(self,arg) 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 @@ PyCursesWindow_AddStr(self,arg) 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 @@ PyCursesPad_New(pad) /* -------------------------------------------------------*/ +#if 0 static PyTypeObject PyCursesScreen_Type = { PyObject_HEAD_INIT(&PyType_Type) 0, /*ob_size*/ @@ -1134,6 +1139,7 @@ static PyTypeObject PyCursesScreen_Type = { 0, /*tp_as_mapping*/ 0, /*tp_hash*/ }; +#endif static PyTypeObject PyCursesWindow_Type = { PyObject_HEAD_INIT(&PyType_Type) @@ -1154,6 +1160,7 @@ static PyTypeObject PyCursesWindow_Type = { 0, /*tp_hash*/ }; +#if 0 static PyTypeObject PyCursesPad_Type = { PyObject_HEAD_INIT(&PyType_Type) 0, /*ob_size*/ @@ -1172,6 +1179,7 @@ static PyTypeObject PyCursesPad_Type = { 0, /*tp_as_mapping*/ 0, /*tp_hash*/ }; +#endif /* -------------------------------------------------------*/ |