Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e82c2ca

Browse filesBrowse files
authored
GH-131296: fix clang-cl warnings on Windows in pyshellext.cpp (GH-131300)
fix unused warnings in pyshellext.cpp
1 parent f104c19 commit e82c2ca
Copy full SHA for e82c2ca

File tree

1 file changed

+1
-6
lines changed
Filter options

1 file changed

+1
-6
lines changed

‎PC/pyshellext.cpp

Copy file name to clipboardExpand all lines: PC/pyshellext.cpp
+1-6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.