Author: hpoussin
Date: Tue Jul 18 18:39:37 2006
New Revision: 23148
URL:
http://svn.reactos.org/svn/reactos?rev=23148&view=rev
Log:
Fix some 'unreferenced variable' warnings
Modified:
trunk/reactos/base/applications/sndvol32/misc.c
trunk/reactos/base/applications/sndvol32/mixer.c
trunk/reactos/base/applications/sndvol32/sndvol32.c
Modified: trunk/reactos/base/applications/sndvol32/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sndvol32…
==============================================================================
--- trunk/reactos/base/applications/sndvol32/misc.c (original)
+++ trunk/reactos/base/applications/sndvol32/misc.c Tue Jul 18 18:39:37 2006
@@ -79,11 +79,11 @@
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));
}
Modified: trunk/reactos/base/applications/sndvol32/mixer.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sndvol32…
==============================================================================
--- trunk/reactos/base/applications/sndvol32/mixer.c (original)
+++ trunk/reactos/base/applications/sndvol32/mixer.c Tue Jul 18 18:39:37 2006
@@ -25,7 +25,7 @@
*/
#include <sndvol32.h>
-#define NO_MIXER_SELECTED (~0)
+#define NO_MIXER_SELECTED ((UINT)(~0))
static VOID
ClearMixerCache(PSND_MIXER Mixer)
@@ -394,7 +394,7 @@
{
if (Mixer->hmx)
{
- int lnsz;
+ UINT lnsz;
PSND_MIXER_DESTINATION Line;
LPMIXERLINE lpl = NULL;
Modified: trunk/reactos/base/applications/sndvol32/sndvol32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sndvol32…
==============================================================================
--- trunk/reactos/base/applications/sndvol32/sndvol32.c (original)
+++ trunk/reactos/base/applications/sndvol32/sndvol32.c Tue Jul 18 18:39:37 2006
@@ -70,6 +70,8 @@
LRESULT lres;
PPREFERENCES_FILL_DEVICES FillContext = (PPREFERENCES_FILL_DEVICES)Context;
+ UNREFERENCED_PARAMETER(Mixer);
+
lres = SendMessage(FillContext->hComboBox,
CB_ADDSTRING,
0,
@@ -101,7 +103,10 @@
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 @@
HWND hwndControls;
LVITEM lvi;
UINT i;
+
+ UNREFERENCED_PARAMETER(Mixer);
+ UNREFERENCED_PARAMETER(LineID);
if (Line->cControls != 0)
{
@@ -543,6 +551,7 @@
static VOID
DeleteMixerWindowControls(PMIXER_WINDOW MixerWindow)
{
+ UNREFERENCED_PARAMETER(MixerWindow);
}
static BOOL
@@ -797,6 +806,10 @@
MSG Msg;
int Ret = 1;
+ UNREFERENCED_PARAMETER(hPrevInstance);
+ UNREFERENCED_PARAMETER(lpszCmdLine);
+ UNREFERENCED_PARAMETER(nCmdShow);
+
hAppInstance = hInstance;
hAppHeap = GetProcessHeap();