]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #6368: Fixed unused variable warning on Unix.
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Mon, 29 Jun 2009 15:52:21 +0000 (15:52 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Mon, 29 Jun 2009 15:52:21 +0000 (15:52 +0000)
Objects/fileobject.c

index 4c523d438c7be4a5a9c2ccca538f40e28b2c0a06..32207027e0ce25d33691726c5bc4c78b8794000c 100644 (file)
@@ -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) {