From 999b44ccf20a8604873654f5bf978ac4cff2cd25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 18 Jul 2006 14:39:37 +0000 Subject: [PATCH] Fix some 'unreferenced variable' warnings svn path=/trunk/; revision=23148 --- reactos/base/applications/sndvol32/misc.c | 10 +++++----- reactos/base/applications/sndvol32/mixer.c | 4 ++-- reactos/base/applications/sndvol32/sndvol32.c | 15 ++++++++++++++- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/reactos/base/applications/sndvol32/misc.c b/reactos/base/applications/sndvol32/misc.c index 0cec222c65e..c97a855c522 100644 --- a/reactos/base/applications/sndvol32/misc.c +++ b/reactos/base/applications/sndvol32/misc.c @@ -79,11 +79,11 @@ AllocAndLoadString(OUT LPWSTR *lpTarget, ln * sizeof(WCHAR)); if ((*lpTarget) != NULL) { - INT Ret; - if (!(Ret = LoadStringW(hInst, - uID, - *lpTarget, - ln))) + INT Ret = LoadStringW(hInst, + uID, + *lpTarget, + ln); + if (!Ret) { LocalFree((HLOCAL)(*lpTarget)); } diff --git a/reactos/base/applications/sndvol32/mixer.c b/reactos/base/applications/sndvol32/mixer.c index dd46aad8d5d..44f0abe74fe 100644 --- a/reactos/base/applications/sndvol32/mixer.c +++ b/reactos/base/applications/sndvol32/mixer.c @@ -25,7 +25,7 @@ */ #include -#define NO_MIXER_SELECTED (~0) +#define NO_MIXER_SELECTED ((UINT)(~0)) static VOID ClearMixerCache(PSND_MIXER Mixer) @@ -394,7 +394,7 @@ SndMixerGetLineName(PSND_MIXER Mixer, { if (Mixer->hmx) { - int lnsz; + UINT lnsz; PSND_MIXER_DESTINATION Line; LPMIXERLINE lpl = NULL; diff --git a/reactos/base/applications/sndvol32/sndvol32.c b/reactos/base/applications/sndvol32/sndvol32.c index a21dc1cfce6..80439313703 100644 --- a/reactos/base/applications/sndvol32/sndvol32.c +++ b/reactos/base/applications/sndvol32/sndvol32.c @@ -70,6 +70,8 @@ FillDeviceComboBox(PSND_MIXER Mixer, LRESULT lres; PPREFERENCES_FILL_DEVICES FillContext = (PPREFERENCES_FILL_DEVICES)Context; + UNREFERENCED_PARAMETER(Mixer); + lres = SendMessage(FillContext->hComboBox, CB_ADDSTRING, 0, @@ -101,7 +103,10 @@ PrefDlgAddLine(PSND_MIXER Mixer, PVOID Context) { PPREFERENCES_CONTEXT PrefContext = (PPREFERENCES_CONTEXT)Context; - + + UNREFERENCED_PARAMETER(Mixer); + UNREFERENCED_PARAMETER(DisplayControls); + switch (Line->dwComponentType) { case MIXERLINE_COMPONENTTYPE_DST_SPEAKERS: @@ -178,6 +183,9 @@ PrefDlgAddConnection(PSND_MIXER Mixer, HWND hwndControls; LVITEM lvi; UINT i; + + UNREFERENCED_PARAMETER(Mixer); + UNREFERENCED_PARAMETER(LineID); if (Line->cControls != 0) { @@ -543,6 +551,7 @@ DlgPreferencesProc(HWND hwndDlg, static VOID DeleteMixerWindowControls(PMIXER_WINDOW MixerWindow) { + UNREFERENCED_PARAMETER(MixerWindow); } static BOOL @@ -797,6 +806,10 @@ WinMain(HINSTANCE hInstance, MSG Msg; int Ret = 1; + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpszCmdLine); + UNREFERENCED_PARAMETER(nCmdShow); + hAppInstance = hInstance; hAppHeap = GetProcessHeap();