From d9f7a999cfd31b3b4926c9f1b1ef2631a834837b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 18 Jul 2006 13:56:00 +0000 Subject: [PATCH] Fix some 'unreferenced variable' warnings svn path=/trunk/; revision=23145 --- reactos/base/setup/welcome/welcome.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/reactos/base/setup/welcome/welcome.c b/reactos/base/setup/welcome/welcome.c index 9f5bf916281..7d3a2f323af 100755 --- a/reactos/base/setup/welcome/welcome.c +++ b/reactos/base/setup/welcome/welcome.c @@ -114,6 +114,9 @@ WinMain(HINSTANCE hInst, WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX; BITMAP BitmapInfo; + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpszCmdLine); + hInstance = hInst; /* Load icons */ @@ -314,6 +317,9 @@ OnCreate(HWND hWnd, WPARAM wParam, LPARAM lParam) DWORD dwTop; DWORD dwHeight = 0; + UNREFERENCED_PARAMETER(wParam); + UNREFERENCED_PARAMETER(lParam); + hbrLightBlue = CreateSolidBrush(LIGHT_BLUE); hbrDarkBlue = CreateSolidBrush(DARK_BLUE); hbrRightPanel = CreateSolidBrush(0x00FFFFFF); @@ -457,6 +463,8 @@ OnCreate(HWND hWnd, WPARAM wParam, LPARAM lParam) static LRESULT OnCommand(HWND hWnd, WPARAM wParam, LPARAM lParam) { + UNREFERENCED_PARAMETER(lParam); + if (LOWORD(wParam) == IDC_CLOSEBUTTON) { DestroyWindow(hWnd); @@ -518,6 +526,9 @@ OnPaint(HWND hWnd, WPARAM wParam, LPARAM lParam) BITMAP bmpInfo; TCHAR version[50]; + UNREFERENCED_PARAMETER(wParam); + UNREFERENCED_PARAMETER(lParam); + hdc = BeginPaint(hWnd, &ps); /* Banner panel */ @@ -662,6 +673,9 @@ OnDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam) TCHAR szText[80]; int iBkMode; + UNREFERENCED_PARAMETER(hWnd); + UNREFERENCED_PARAMETER(wParam); + if (lpDis->hwndItem == hwndCloseButton) { DrawFrameControl(lpDis->hDC, @@ -707,6 +721,9 @@ OnDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam) static LRESULT OnMouseMove(HWND hWnd, WPARAM wParam, LPARAM lParam) { + UNREFERENCED_PARAMETER(wParam); + UNREFERENCED_PARAMETER(lParam); + if (nTopic != -1) { nTopic = -1; @@ -721,6 +738,8 @@ OnMouseMove(HWND hWnd, WPARAM wParam, LPARAM lParam) static LRESULT OnCtlColorStatic(HWND hWnd, WPARAM wParam, LPARAM lParam) { + UNREFERENCED_PARAMETER(hWnd); + if ((HWND)lParam == hwndCheckButton) { SetBkColor((HDC)wParam, LIGHT_BLUE); @@ -734,6 +753,9 @@ OnCtlColorStatic(HWND hWnd, WPARAM wParam, LPARAM lParam) static LRESULT OnActivate(HWND hWnd, WPARAM wParam, LPARAM lParam) { + UNREFERENCED_PARAMETER(hWnd); + UNREFERENCED_PARAMETER(wParam); + UNREFERENCED_PARAMETER(lParam); nTopic = -1; InvalidateRect(hwndMain, &rcRightPanel, TRUE); @@ -746,6 +768,10 @@ OnDestroy(HWND hWnd, WPARAM wParam, LPARAM lParam) { int i; + UNREFERENCED_PARAMETER(hWnd); + UNREFERENCED_PARAMETER(wParam); + UNREFERENCED_PARAMETER(lParam); + for (i=0;i<10;i++) { if (hwndTopicButton[i] != 0)