[Python-checkins] r78901 - in python/branches/py3k: Modules/_cursesmodule.c
ezio.melotti
python-checkins at python.org
Sat Mar 13 05:42:07 CET 2010
Author: ezio.melotti
Date: Sat Mar 13 05:42:07 2010
New Revision: 78901
Log:
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.
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Modules/_cursesmodule.c
Modified: python/branches/py3k/Modules/_cursesmodule.c
==============================================================================
--- python/branches/py3k/Modules/_cursesmodule.c (original)
+++ python/branches/py3k/Modules/_cursesmodule.c Sat Mar 13 05:42:07 2010
@@ -458,14 +458,14 @@
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 @@
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 @@
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 @@
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");
}
More information about the Python-checkins
mailing list