From: Hirokazu Yamamoto Date: Mon, 29 Jun 2009 15:52:21 +0000 (+0000) Subject: Issue #6368: Fixed unused variable warning on Unix. X-Git-Tag: v2.7a1~878 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c3dd9a1ee959d7e85e9b1ab541687dba8f7d095;p=thirdparty%2FPython%2Fcpython.git Issue #6368: Fixed unused variable warning on Unix. --- diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 4c523d438c7b..32207027e0ce 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -2238,7 +2238,9 @@ file_init(PyObject *self, PyObject *args, PyObject *kwds) char *mode = "r"; int bufsize = -1; int wideargument = 0; +#ifdef MS_WINDOWS PyObject *po; +#endif assert(PyFile_Check(self)); if (foself->f_fp != NULL) {