[PATCH 0/2] MR10971: Remove unused global variables from programs.
Some more changes related to the -Wunused-but-set-global warnings from clang. CC: @jacek -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10971
From: Bernhard Übelacker <bernhardu@mailbox.org> --- programs/regedit/framewnd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c index c2af414d268..3e2bbce3f2b 100644 --- a/programs/regedit/framewnd.c +++ b/programs/regedit/framewnd.c @@ -36,7 +36,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(regedit); */ static const WCHAR favoritesKey[] = L"Software\\Microsoft\\Windows\\CurrentVersion\\Applets\\Regedit\\Favorites"; -static BOOL bInMenuLoop = FALSE; /* Tells us if we are in the menu loop */ static WCHAR favoriteName[128]; static WCHAR searchString[128]; static int searchMask = SEARCH_KEYS | SEARCH_VALUES | SEARCH_CONTENT; @@ -81,13 +80,11 @@ static void OnEnterMenuLoop(HWND hWnd) /* Update the status bar pane sizes */ nParts = -1; SendMessageW(hStatusBar, SB_SETPARTS, 1, (LPARAM)&nParts); - bInMenuLoop = TRUE; SendMessageW(hStatusBar, SB_SETTEXTW, 0, (LPARAM)&empty); } static void OnExitMenuLoop(HWND hWnd) { - bInMenuLoop = FALSE; /* Update the status bar pane sizes*/ SetupStatusBar(hWnd, TRUE); UpdateStatusBar(); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10971
From: Bernhard Übelacker <bernhardu@mailbox.org> --- programs/uninstaller/main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/programs/uninstaller/main.c b/programs/uninstaller/main.c index 8a22cc7288c..e053bc2346c 100644 --- a/programs/uninstaller/main.c +++ b/programs/uninstaller/main.c @@ -43,7 +43,6 @@ typedef struct { } uninst_entry; static uninst_entry *entries = NULL; static unsigned int numentries = 0; -static int oldsel = -1; static WCHAR *sFilter; static BOOL silent; @@ -281,7 +280,6 @@ static int FetchUninstallInformation(void) HKEY root; numentries = 0; - oldsel = -1; if (!entries) entries = malloc(sizeof(uninst_entry)); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10971
This merge request was approved by Jacek Caban. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10971
participants (3)
-
Bernhard Übelacker -
Bernhard Übelacker (@bernhardu) -
Jacek Caban (@jacek)