From: Fred Drake Date: Fri, 19 Mar 2004 15:23:14 +0000 (+0000) Subject: PyFile_WriteObject(): some of the local variables are only used when X-Git-Tag: v2.3.4c1~108 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acfe104847c5f08cc00d6847efb756734f7cf2b2;p=thirdparty%2FPython%2Fcpython.git PyFile_WriteObject(): some of the local variables are only used when Py_USING_UNICODE is defined --- diff --git a/Objects/fileobject.c b/Objects/fileobject.c index efbd6b66b9c5..127abceae41e 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -2074,8 +2074,10 @@ PyFile_WriteObject(PyObject *v, PyObject *f, int flags) } else if (PyFile_Check(f)) { FILE *fp = PyFile_AsFile(f); +#ifdef Py_USING_UNICODE PyObject *enc = ((PyFileObject*)f)->f_encoding; int result; +#endif if (fp == NULL) { err_closed(); return -1;