reactos/dll/win32/shell32
Joachim Henze a08b83a90b
[SHELL32] Fix 2 compiler warnings for the rls-cfg 'unused variable' (#6539)
I noticed it on releases/0.4.10 with the RosBEWin2.1.6 GCC4.7.2 *rls* configuration:

C:/0410rls/reactos/dll/win32/shell32/dialogs/filetypes.cpp: In function 'BOOL FileTypesDlg_InsertToLV(HWND, LPCWSTR, INT, LPCWSTR)':
C:/0410rls/reactos/dll/win32/shell32/dialogs/filetypes.cpp:663:9: warning: variable 'iLargeImage' set but not used [-Wunused-but-set-variable]
C:/0410rls/reactos/dll/win32/shell32/dialogs/filetypes.cpp: In function 'BOOL EditTypeDlg_UpdateEntryIcon(HWND, PEDITTYPE_DIALOG, LPCWSTR, INT)':
C:/0410rls/reactos/dll/win32/shell32/dialogs/filetypes.cpp:1040:9: warning: unused variable 'iLargeImage' [-Wunused-variable]

But I do assume, that MSVC compilers would also complain about that in *rls* cfg.

Please notice that before 0.4.10-dev-202-g 698cbc6184 which did splitup and restructure the code
this function was placed within the file folder_options.cpp and was named
InsertFileType(HWND hDlgCtrl, WCHAR * szName, PINT iItem, WCHAR * szFile)
and not yet within file_types.cpp with the new name
FileTypesDlg_InsertToLV(HWND hListView, LPCWSTR szName, INT iItem, LPCWSTR szFile)
Back then it did not have the iLargeImage variable yet, and it also didn't warn upon rls-cfg-compilation.
Therefore 0.4.10-dev-202-g 698cbc6184 from (#582) is indeed the *guilty revision* (2018-06-06).
It was done in the very first commit of that PR 2fe0eab721
It's bad practice to move and refactor/extend code in functionality within the very same commit, as it makes reviewing the changes much harder.

That assert never fired for the last 6 years, therefore it would have been okay also to strip it together with the variable, but using DBG_UNREFERENCED_LOCAL_VARIABLE(iLargeImage); allows to keep the assert for master.
2024-02-26 13:42:13 +01:00
..
dialogs [SHELL32] Fix 2 compiler warnings for the rls-cfg 'unused variable' (#6539) 2024-02-26 13:42:13 +01:00
droptargets [SHELL32] Tweak formatting and logging 2024-02-20 02:08:56 +01:00
folders [SHELL32] Tweak formatting and logging 2024-02-20 02:08:56 +01:00
lang [SHELL32] Update Romanian (ro-RO) translation (#6441) 2024-02-11 23:09:32 +01:00
res [SHELL32][CONTROL] Added basic IOpenControlPanel support (#6248) 2024-01-17 17:07:21 +01:00
shelldesktop [SHELL32][SDK] Implement SHIsTempDisplayMode (#5523) 2023-08-07 09:50:30 +09:00
shellmenu [SHELL32] Tweak formatting and logging 2024-02-20 02:08:56 +01:00
shellrecyclebin [SHELL32] Implement SHQueryRecycleBinW 2023-04-26 22:50:11 +02:00
wine [SHELL32] Sync HCR_RegGetIconW() function to Wine 9.1 (#6418) 2024-02-02 18:10:36 +03:00
avi_res.rc
bitmap_res.rc [SHELL32] Show Product version on About dialog bmp (#3621) 2021-05-08 15:54:32 +09:00
CActiveDesktop.cpp
CActiveDesktop.h
CCopyMoveToMenu.cpp [SHELL32] Commonize CCopyToMenu and CMoveToMenu (#5873) 2023-11-04 21:56:15 +09:00
CCopyMoveToMenu.h [SHELL32] Commonize CCopyToMenu and CMoveToMenu (#5873) 2023-11-04 21:56:15 +09:00
CDefaultContextMenu.cpp [SHELL32] Tweak formatting and logging 2024-02-20 02:08:56 +01:00
CDefView.cpp [SHELL32] Tweak formatting and logging 2024-02-20 02:08:56 +01:00
CDefViewBckgrndMenu.cpp [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
CDefViewDual.cpp
CDropTargetHelper.cpp
CDropTargetHelper.h
CEnumIDListBase.cpp [SHELL32][SHELLEXT] IEnumIDList::Next must handle pceltFetched and memory errors correctly (#5820) 2023-11-13 16:31:37 +01:00
CEnumIDListBase.h
CExtractIcon.cpp [PSDK][SHELL32][SHELLEXT] Add SHCreateFileExtractIconW() to the PSDK and SAL-annotate it. (#4223) 2021-12-31 02:30:58 +01:00
CFileSysBindData.cpp
CFolder.cpp [SHELL32][BROWSEUI] Fix usage of ILGetDisplayNameEx 2020-10-04 19:34:20 +02:00
CFolder.h
CFolderItems.cpp [EXPLORER][BROWSEUI][SHELL32][NETSHELL] Fix wrong usage of CComPtr 2022-10-02 00:38:23 +02:00
CFolderItems.h
CFolderItemVerbs.cpp [SHELL32] CFolderItemVerb: Zero-initialize output parameters 2022-10-14 21:04:19 +02:00
CFolderItemVerbs.h
CFolderOptions.cpp
CFolderOptions.h [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
changenotify.cpp [SHELL32] SHChangeRegistrationReceive just returns FALSE 2023-09-21 12:09:28 +09:00
CIDLDataObj.cpp [SHELL32][SHELL32_APITEST] Implement SHCreateFileDataObject 2021-12-31 21:27:30 +01:00
CMakeLists.txt [SHELL32] Commonize CCopyToMenu and CMoveToMenu (#5873) 2023-11-04 21:56:15 +09:00
CNewMenu.cpp [SHELL32] Add IDS_NEWITEMFORMAT and retry FCIDM_SHVIEW_NEW (#5412) 2023-07-07 17:24:25 +09:00
CNewMenu.h [SHELL32] Delete unused CNewMenu::m_wszPath 2019-12-03 13:46:35 +09:00
COpenWithMenu.cpp [SHELL32] Tweak formatting and logging 2024-02-20 02:08:56 +01:00
COpenWithMenu.h
CQueryAssociations.cpp [SHELL32] Use wide char string literals. 2022-01-09 22:39:29 +01:00
CQueryAssociations.h [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
CSendToMenu.cpp [SHELL32] Follow-up of #5008 (8e036fe) 2023-01-30 08:01:15 +09:00
CSendToMenu.h [SENDMAIL][ZIPFLDR][MYDOCS] Fix creation of SendTo files (#2616) 2020-04-23 04:19:20 +09:00
CShellDispatch.cpp [SHELL32] ShellDispatch::ShellExecute must default to displaying the window (#6143) 2023-12-17 15:48:24 +03:00
CShellDispatch.h
CShellItem.cpp [PSDK] Support STRICT_TYPED_ITEMIDS in shlobj.h. CORE-16385 2020-01-03 22:42:34 +01:00
CShellItem.h
CShellLink.cpp [SHELL32] Tweak formatting and logging 2024-02-20 02:08:56 +01:00
CShellLink.h
CUserNotification.cpp
CUserNotification.h
debughlp.cpp [SHELL32] Enable Network Connection Rename (#5073) 2023-04-30 15:40:10 +02:00
debughlp.h [SHELL32] Add extra information when encountering an unexpected pidl 2022-02-22 19:43:05 +01:00
folders.cpp
icon_res.rc
iconcache.cpp [SHELL32] Move SheRemoveQuotesA/W to utils.cpp (#5535) 2023-08-06 13:07:39 +02:00
precomp.h [SHELL32] Commonize CCopyToMenu and CMoveToMenu (#5873) 2023-11-04 21:56:15 +09:00
rgs_res.rc [SHELL32] Implement Move To Folder (#3056) 2020-08-18 05:30:54 +09:00
shell32.cpp [SHELL32][CONTROL] Added basic IOpenControlPanel support (#6248) 2024-01-17 17:07:21 +01:00
shell32.rc [TRANSLATION] Add Hong Kong Chinese (zh-HK) translation - Part 1 (#3941) 2021-12-30 00:40:57 +03:00
shell32.spec [SHELL32][SDK] Implement CopyStreamUI (#5848) 2023-10-31 22:32:02 +09:00
shell32_shldisp.idl
shell32_version.h
shell32_version.rc
shfldr.h [SHELL32] Don't smartass-renaming on LNK files (#4020) 2021-10-11 13:33:43 +09:00
shldataobject.cpp [SHELL32][SHELL32_APITEST] Add SHGetAttributesFromDataObject 2021-11-15 20:02:13 +01:00
shlexec.cpp [SHELL32] Fix for shlexec.cpp regressions (#5282) 2023-09-24 20:35:28 +00:00
shlfileop.cpp [SHELL32] Improve error message on copying files (#6290) 2024-01-12 16:01:21 +09:00
shlfolder.cpp [SHELL32] Tweak formatting and logging 2024-02-20 02:08:56 +01:00
shobjidl_local.idl
shresdef.h [SHELL32] Handle HotKey and ShowCmd on the shortcut property page (#5638) 2023-09-02 21:16:22 +03:00
stubs.cpp [SHELL32][SHELL32_APITEST][SDK] Implement PathIsEqualOrSubFolder (#5714) 2023-11-29 22:50:01 +09:00
systray.cpp [Explorer|Shell32] 2020-03-21 19:13:55 -05:00
utils.cpp [SHELL32][SHELL32_APITEST][SDK] Implement PathIsEqualOrSubFolder (#5714) 2023-11-29 22:50:01 +09:00
vista.c