summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2000-08-18 19:30:40 (GMT)
committerBarry Warsaw <barry@python.org>2000-08-18 19:30:40 (GMT)
commitce4dc41b1a2be5b5335bcbc0865b145852a5c0e5 (patch)
treed8ed3e816a5bde1994710f8557c3a79352aa19c2 /Objects
parent0888ff17bd745333dc61a0e4bb3afb399f007c3f (diff)
downloadcpython-ce4dc41b1a2be5b5335bcbc0865b145852a5c0e5.zip
cpython-ce4dc41b1a2be5b5335bcbc0865b145852a5c0e5.tar.gz
cpython-ce4dc41b1a2be5b5335bcbc0865b145852a5c0e5.tar.bz2
PyUnicode_AsUTF8String(): /F picks up what I missed: the local var
`str' is no longer necessary. Gotta turn on -Wall!
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 1d35c3d..11146ff 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -901,8 +901,6 @@ PyObject *PyUnicode_EncodeUTF8(const Py_UNICODE *s,
PyObject *PyUnicode_AsUTF8String(PyObject *unicode)
{
- PyObject *str;
-
if (!PyUnicode_Check(unicode)) {
PyErr_BadArgument();
return NULL;