diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-03-23 15:56:12 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-03-23 15:56:12 (GMT) |
commit | 6de9bec3928f786488e4206785ce9db227d9871b (patch) | |
tree | 238eaf87f575c207882647b50b4d4184d42d06d8 | |
parent | d526c7cc1c7d8d86f6f47312a79ca68e4deea215 (diff) | |
download | cpython-6de9bec3928f786488e4206785ce9db227d9871b.zip cpython-6de9bec3928f786488e4206785ce9db227d9871b.tar.gz cpython-6de9bec3928f786488e4206785ce9db227d9871b.tar.bz2 |
Merged revisions 78901 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r78901 | ezio.melotti | 2010-03-13 06:42:07 +0200 (Sat, 13 Mar 2010) | 9 lines
Merged revisions 78900 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78900 | ezio.melotti | 2010-03-13 06:39:51 +0200 (Sat, 13 Mar 2010) | 1 line
Silence compiler warnings.
........
................
-rw-r--r-- | Modules/_cursesmodule.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index ab17b0b..a89c22b 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -458,14 +458,14 @@ PyCursesWindow_AddStr(PyCursesWindowObject *self, PyObject *args) if (use_attr == TRUE) { attr_old = getattrs(self->win); - wattrset(self->win,attr); + (void)wattrset(self->win,attr); } if (use_xy == TRUE) rtn = mvwaddstr(self->win,y,x,str); else rtn = waddstr(self->win,str); if (use_attr == TRUE) - wattrset(self->win,attr_old); + (void)wattrset(self->win,attr_old); return PyCursesCheckERR(rtn, "addstr"); } @@ -507,14 +507,14 @@ PyCursesWindow_AddNStr(PyCursesWindowObject *self, PyObject *args) if (use_attr == TRUE) { attr_old = getattrs(self->win); - wattrset(self->win,attr); + (void)wattrset(self->win,attr); } if (use_xy == TRUE) rtn = mvwaddnstr(self->win,y,x,str,n); else rtn = waddnstr(self->win,str,n); if (use_attr == TRUE) - wattrset(self->win,attr_old); + (void)wattrset(self->win,attr_old); return PyCursesCheckERR(rtn, "addnstr"); } @@ -1148,14 +1148,14 @@ PyCursesWindow_InsStr(PyCursesWindowObject *self, PyObject *args) if (use_attr == TRUE) { attr_old = getattrs(self->win); - wattrset(self->win,attr); + (void)wattrset(self->win,attr); } if (use_xy == TRUE) rtn = mvwinsstr(self->win,y,x,str); else rtn = winsstr(self->win,str); if (use_attr == TRUE) - wattrset(self->win,attr_old); + (void)wattrset(self->win,attr_old); return PyCursesCheckERR(rtn, "insstr"); } @@ -1197,14 +1197,14 @@ PyCursesWindow_InsNStr(PyCursesWindowObject *self, PyObject *args) if (use_attr == TRUE) { attr_old = getattrs(self->win); - wattrset(self->win,attr); + (void)wattrset(self->win,attr); } if (use_xy == TRUE) rtn = mvwinsnstr(self->win,y,x,str,n); else rtn = winsnstr(self->win,str,n); if (use_attr == TRUE) - wattrset(self->win,attr_old); + (void)wattrset(self->win,attr_old); return PyCursesCheckERR(rtn, "insnstr"); } |