]> granicus.if.org Git - python/commitdiff
Issues #25890, #25891, #25892: Removed unused variables in Windows code.
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 18 Dec 2015 08:03:13 +0000 (10:03 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 18 Dec 2015 08:03:13 +0000 (10:03 +0200)
Reported by Alexander Riccio.

Modules/posixmodule.c
Objects/unicodeobject.c

index 0e423f9bc4739dbcb656c93ab80287a00267f6fa..81c3c4807e1fa3ed87d119a9eb7eed7fcaafb1a3 100644 (file)
@@ -3463,7 +3463,6 @@ _listdir_windows_no_opendir(path_t *path, PyObject *list)
     char *bufptr = namebuf;
     /* only claim to have space for MAX_PATH */
     Py_ssize_t len = Py_ARRAY_LENGTH(namebuf)-4;
-    PyObject *po = NULL;
     wchar_t *wnamebuf = NULL;
 
     if (!path->narrow) {
@@ -12380,7 +12379,6 @@ enable_symlink()
     HANDLE tok;
     TOKEN_PRIVILEGES tok_priv;
     LUID luid;
-    int meth_idx = 0;
 
     if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ALL_ACCESS, &tok))
         return 0;
index 895a4e88f3b8bf3152e09735b374a8fe8786ef3f..ad8f505403b62525c065d3755aaf41a8f5974262 100644 (file)
@@ -7332,7 +7332,6 @@ encode_code_page_strict(UINT code_page, PyObject **outbytes,
     BOOL usedDefaultChar = FALSE;
     BOOL *pusedDefaultChar = &usedDefaultChar;
     int outsize;
-    PyObject *exc = NULL;
     wchar_t *p;
     Py_ssize_t size;
     const DWORD flags = encode_code_page_flags(code_page, NULL);