Skip to content

Commit 083306d

Browse files
chris-eiblplashchynski
authored andcommitted
pythonGH-131296: fix clang-cl warnings on Windows in pyshellext.cpp (pythonGH-131300)
fix unused warnings in pyshellext.cpp
1 parent 1bcfabf commit 083306d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

PC/pyshellext.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ HRESULT FilenameListCchLengthW(LPCWSTR pszSource, size_t cchMax, size_t *pcchLen
6868

6969
HRESULT FilenameListCchCopyA(STRSAFE_LPSTR pszDest, size_t cchDest, LPCSTR pszSource, LPCSTR pszSeparator) {
7070
HRESULT hr = S_OK;
71-
size_t count = 0;
72-
size_t length = 0;
7371

7472
while (pszSource[0]) {
7573
STRSAFE_LPSTR newDest;
@@ -95,8 +93,6 @@ HRESULT FilenameListCchCopyA(STRSAFE_LPSTR pszDest, size_t cchDest, LPCSTR pszSo
9593

9694
HRESULT FilenameListCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, LPCWSTR pszSource, LPCWSTR pszSeparator) {
9795
HRESULT hr = S_OK;
98-
size_t count = 0;
99-
size_t length = 0;
10096

10197
while (pszSource[0]) {
10298
STRSAFE_LPWSTR newDest;
@@ -498,7 +494,6 @@ STDAPI DllCanUnloadNow() {
498494

499495
STDAPI DllRegisterServer() {
500496
LONG res;
501-
SECURITY_ATTRIBUTES secattr = { sizeof(SECURITY_ATTRIBUTES), NULL, FALSE };
502497
LPSECURITY_ATTRIBUTES psecattr = NULL;
503498
HKEY key, ipsKey;
504499
WCHAR modname[MAX_PATH];
@@ -605,4 +600,4 @@ STDAPI_(BOOL) DllMain(_In_opt_ HINSTANCE hinst, DWORD reason, _In_opt_ void*) {
605600
DisableThreadLibraryCalls(hinst);
606601
}
607602
return TRUE;
608-
}
603+
}

0 commit comments

Comments
 (0)