Mercurial > cpython-lru_cache-weakref
diff Modules/cStringIO.c @ 4957:9d58d0e9877e legacy-trunk
Quieted gcc -Wall by removing unused local variables.
Suppressing my urge to reformat according to Python coding standards!
:-)
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Tue, 14 Jan 1997 17:38:28 +0000 |
| parents | fce781b127b9 |
| children | e8f8cf358054 |
line wrap: on
line diff
--- a/Modules/cStringIO.c Tue Jan 14 17:37:32 1997 +0000 +++ b/Modules/cStringIO.c Tue Jan 14 17:38:28 1997 +0000 @@ -58,6 +58,12 @@ $Log$ + Revision 2.3 1997/01/14 17:38:28 bwarsaw + Quieted gcc -Wall by removing unused local variables. + + Suppressing my urge to reformat according to Python coding standards! + :-) + Revision 2.2 1997/01/06 22:57:52 guido Jim's latest version. @@ -317,9 +323,7 @@ ARGDECL(char*, c) ARGDECL(int, l) { - PyObject *s; - char *b; - int newl, space_needed; + int newl; newl=self->pos+l; if(newl > self->buf_size) @@ -352,8 +356,8 @@ ARGDECL(PyObject*, args) { PyObject *s; - char *c, *b; - int l, newl, space_needed; + char *c; + int l; UNLESS(PyArg_Parse(args, "O", &s)) return NULL; UNLESS(-1 != (l=PyString_Size(s))) return NULL;
