]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #12517: Silence warning on windows buildbots (from 7fd80c61ddaa).
authorRoss Lagerwall <rosslagerwall@gmail.com>
Mon, 19 Sep 2011 06:30:43 +0000 (08:30 +0200)
committerRoss Lagerwall <rosslagerwall@gmail.com>
Mon, 19 Sep 2011 06:30:43 +0000 (08:30 +0200)
Modules/posixmodule.c

index 355e01f8599e8f7d91e1148a5624bc0f2a52501d..2fc509d315f406bbfe66bcf9e50d53cc3df7ff29 100644 (file)
@@ -375,6 +375,8 @@ static int win32_can_symlink = 0;
 #endif
 #endif
 
+/* A helper used by a number of POSIX-only functions */
+#ifndef MS_WINDOWS
 static int
 _parse_off_t(PyObject* arg, void* addr)
 {
@@ -387,6 +389,7 @@ _parse_off_t(PyObject* arg, void* addr)
         return 0;
     return 1;
 }
+#endif
 
 #if defined _MSC_VER && _MSC_VER >= 1400
 /* Microsoft CRT in VS2005 and higher will verify that a filehandle is