https://github.com/python/cpython/commit/e82c2ca2a59235bc1965b259f4421635861e0470
commit: e82c2ca2a59235bc1965b259f4421635861e0470
branch: main
author: Chris Eibl <[email protected]>
committer: gpshead <[email protected]>
date: 2025-03-15T18:55:00Z
summary:
GH-131296: fix clang-cl warnings on Windows in pyshellext.cpp (GH-131300)
fix unused warnings in pyshellext.cpp
files:
M PC/pyshellext.cpp
diff --git a/PC/pyshellext.cpp b/PC/pyshellext.cpp
index ffca169857c375..d16de0b717151e 100644
--- a/PC/pyshellext.cpp
+++ b/PC/pyshellext.cpp
@@ -68,8 +68,6 @@ HRESULT FilenameListCchLengthW(LPCWSTR pszSource, size_t
cchMax, size_t *pcchLen
HRESULT FilenameListCchCopyA(STRSAFE_LPSTR pszDest, size_t cchDest, LPCSTR
pszSource, LPCSTR pszSeparator) {
HRESULT hr = S_OK;
- size_t count = 0;
- size_t length = 0;
while (pszSource[0]) {
STRSAFE_LPSTR newDest;
@@ -95,8 +93,6 @@ HRESULT FilenameListCchCopyA(STRSAFE_LPSTR pszDest, size_t
cchDest, LPCSTR pszSo
HRESULT FilenameListCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, LPCWSTR
pszSource, LPCWSTR pszSeparator) {
HRESULT hr = S_OK;
- size_t count = 0;
- size_t length = 0;
while (pszSource[0]) {
STRSAFE_LPWSTR newDest;
@@ -498,7 +494,6 @@ STDAPI DllCanUnloadNow() {
STDAPI DllRegisterServer() {
LONG res;
- SECURITY_ATTRIBUTES secattr = { sizeof(SECURITY_ATTRIBUTES), NULL, FALSE };
LPSECURITY_ATTRIBUTES psecattr = NULL;
HKEY key, ipsKey;
WCHAR modname[MAX_PATH];
@@ -605,4 +600,4 @@ STDAPI_(BOOL) DllMain(_In_opt_ HINSTANCE hinst, DWORD
reason, _In_opt_ void*) {
DisableThreadLibraryCalls(hinst);
}
return TRUE;
-}
\ No newline at end of file
+}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]