From: Barry Warsaw Date: Fri, 18 Aug 2000 19:30:40 +0000 (+0000) Subject: PyUnicode_AsUTF8String(): /F picks up what I missed: the local var X-Git-Tag: v2.0b1~364 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce4dc41b1a2be5b5335bcbc0865b145852a5c0e5;p=thirdparty%2FPython%2Fcpython.git PyUnicode_AsUTF8String(): /F picks up what I missed: the local var `str' is no longer necessary. Gotta turn on -Wall! --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 1d35c3d3805f..11146ff0dd8e 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;