Author: cwittich
Date: Fri Jun 23 22:44:57 2006
New Revision: 22539
URL:
http://svn.reactos.org/svn/reactos?rev=22539&view=rev
Log:
-fixed some warnings (msvc)
Modified:
trunk/reactos/dll/cpl/powercfg/advanced.c
trunk/reactos/dll/cpl/powercfg/alarms.c
trunk/reactos/dll/cpl/powercfg/powercfg.c
trunk/reactos/dll/cpl/powercfg/powershemes.c
Modified: trunk/reactos/dll/cpl/powercfg/advanced.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/powercfg/advanced.…
==============================================================================
--- trunk/reactos/dll/cpl/powercfg/advanced.c (original)
+++ trunk/reactos/dll/cpl/powercfg/advanced.c Fri Jun 23 22:44:57 2006
@@ -96,7 +96,7 @@
{
int Index;
- for (Index = 0; Index < dwActionSize; Index++)
+ for (Index = 0; Index < (int) dwActionSize; Index++)
{
if (lpAction[Index] == poAction)
return Index;
Modified: trunk/reactos/dll/cpl/powercfg/alarms.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/powercfg/alarms.c?…
==============================================================================
--- trunk/reactos/dll/cpl/powercfg/alarms.c (original)
+++ trunk/reactos/dll/cpl/powercfg/alarms.c Fri Jun 23 22:44:57 2006
@@ -31,6 +31,8 @@
LPARAM lParam
)
{
+ UNREFERENCED_PARAMETER(lParam)
+ UNREFERENCED_PARAMETER(wParam)
switch(uMsg)
{
case WM_INITDIALOG:
Modified: trunk/reactos/dll/cpl/powercfg/powercfg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/powercfg/powercfg.…
==============================================================================
--- trunk/reactos/dll/cpl/powercfg/powercfg.c (original)
+++ trunk/reactos/dll/cpl/powercfg/powercfg.c Fri Jun 23 22:44:57 2006
@@ -55,6 +55,7 @@
LPARAM lParam
)
{
+ UNREFERENCED_PARAMETER(hwndDlg)
switch(uMsg)
{
case PSCB_BUTTONPRESSED:
@@ -88,7 +89,12 @@
TCHAR Caption[1024];
SYSTEM_POWER_CAPABILITIES spc;
INT i=0;
-
+
+ UNREFERENCED_PARAMETER(hwnd)
+ UNREFERENCED_PARAMETER(uMsg)
+ UNREFERENCED_PARAMETER(wParam)
+ UNREFERENCED_PARAMETER(lParam)
+
memset(Caption, 0x0, sizeof(Caption));
LoadString(hApplet, IDS_CPLNAME_1, Caption, sizeof(Caption) / sizeof(TCHAR));
@@ -104,17 +110,17 @@
psh.ppsp = psp;
psh.pfnCallback = PropSheetProc;
- InitPropSheetPage(&psp[i++], IDD_PROPPAGEPOWERSHEMES, powershemesProc);
+ InitPropSheetPage(&psp[i++], IDD_PROPPAGEPOWERSHEMES, (DLGPROC) powershemesProc);
if (GetPwrCapabilities(&spc))
{
if (spc.SystemBatteriesPresent)
{
- InitPropSheetPage(&psp[i++], IDD_PROPPAGEALARMS, alarmsProc);
+ InitPropSheetPage(&psp[i++], IDD_PROPPAGEALARMS, (DLGPROC) alarmsProc);
psh.nPages += 1;
}
}
- InitPropSheetPage(&psp[i++], IDD_PROPPAGEADVANCED, advancedProc);
- InitPropSheetPage(&psp[i++], IDD_PROPPAGEHIBERNATE, hibernateProc);
+ InitPropSheetPage(&psp[i++], IDD_PROPPAGEADVANCED, (DLGPROC) advancedProc);
+ InitPropSheetPage(&psp[i++], IDD_PROPPAGEHIBERNATE, (DLGPROC) hibernateProc);
return (LONG)(PropertySheet(&psh) != -1);
}
@@ -165,6 +171,7 @@
DWORD dwReason,
LPVOID lpvReserved)
{
+ UNREFERENCED_PARAMETER(lpvReserved)
switch(dwReason)
{
case DLL_PROCESS_ATTACH:
Modified: trunk/reactos/dll/cpl/powercfg/powershemes.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/powercfg/powershem…
==============================================================================
--- trunk/reactos/dll/cpl/powercfg/powershemes.c (original)
+++ trunk/reactos/dll/cpl/powercfg/powershemes.c Fri Jun 23 22:44:57 2006
@@ -224,6 +224,12 @@
LPWSTR sDesc, PPOWER_POLICY pp,LPARAM lParam
)
{
int index;
+
+ UNREFERENCED_PARAMETER(lParam)
+ UNREFERENCED_PARAMETER(sDesc)
+ UNREFERENCED_PARAMETER(dwDesc)
+ UNREFERENCED_PARAMETER(dwName)
+
if (ValidatePowerPolicies(0,pp))
{
if (guiIndex >= MAX_POWER_POLICY)
@@ -237,7 +243,7 @@
memcpy(&gPP[guiIndex], pp, sizeof(POWER_POLICY));
guiIndex++;
- index = SendMessage(hList,
+ index = (int) SendMessage(hList,
CB_ADDSTRING,
0,
(LPARAM)sName);
@@ -393,7 +399,7 @@
TCHAR szConfig[MAX_PATH];
POWER_POLICY pp;
- iCurSel = SendMessage(GetDlgItem(hwndDlg, IDC_ENERGYLIST),
+ iCurSel = (INT) SendMessage(GetDlgItem(hwndDlg, IDC_ENERGYLIST),
CB_GETCURSEL,
0,
0);
@@ -402,7 +408,7 @@
memcpy(&pp, &gPP[iCurSel], sizeof(POWER_POLICY));
- uiIndex = SendMessage(GetDlgItem(hwndDlg, IDC_ENERGYLIST), CB_GETCURSEL, 0, 0);
+ uiIndex = (UINT) SendMessage(GetDlgItem(hwndDlg, IDC_ENERGYLIST), CB_GETCURSEL, 0, 0);
if(uiIndex != CB_ERR)
{
SendMessage(GetDlgItem(hwndDlg, IDC_ENERGYLIST), CB_GETLBTEXT, uiIndex,
(LPARAM)szProfile);
@@ -479,14 +485,14 @@
{
INT iCurSel=0,tmp=0;
- iCurSel = SendMessage(GetDlgItem(hwndDlg, IDC_ENERGYLIST),
+ iCurSel = (INT) SendMessage(GetDlgItem(hwndDlg, IDC_ENERGYLIST),
CB_GETCURSEL,
0,
0);
if (iCurSel == CB_ERR)
return;
- tmp = SendMessage(GetDlgItem(hwndDlg, IDC_MONITORDCLIST),
+ tmp = (INT) SendMessage(GetDlgItem(hwndDlg, IDC_MONITORDCLIST),
CB_GETCURSEL,
0,
(LPARAM)0);
@@ -494,7 +500,7 @@
{
gPP[iCurSel].user.VideoTimeoutAc = Sec[tmp];
}
- tmp = SendMessage(GetDlgItem(hwndDlg, IDC_MONITORDCLIST),
+ tmp = (INT) SendMessage(GetDlgItem(hwndDlg, IDC_MONITORDCLIST),
CB_GETCURSEL,
0,
(LPARAM)0);
@@ -502,7 +508,7 @@
{
gPP[iCurSel].user.VideoTimeoutDc = Sec[tmp];
}
- tmp = SendMessage(GetDlgItem(hwndDlg, IDC_DISKACLIST),
+ tmp = (INT) SendMessage(GetDlgItem(hwndDlg, IDC_DISKACLIST),
CB_GETCURSEL,
0,
(LPARAM)0);
@@ -510,7 +516,7 @@
{
gPP[iCurSel].user.SpindownTimeoutAc = Sec[tmp+2];
}
- tmp = SendMessage(GetDlgItem(hwndDlg, IDC_DISKDCLIST),
+ tmp = (INT) SendMessage(GetDlgItem(hwndDlg, IDC_DISKDCLIST),
CB_GETCURSEL,
0,
(LPARAM)0);
@@ -518,7 +524,7 @@
{
gPP[iCurSel].user.SpindownTimeoutDc = Sec[tmp+2];
}
- tmp = SendMessage(GetDlgItem(hwndDlg, IDC_STANDBYACLIST),
+ tmp = (INT) SendMessage(GetDlgItem(hwndDlg, IDC_STANDBYACLIST),
CB_GETCURSEL,
0,
(LPARAM)0);
@@ -526,7 +532,7 @@
{
gPP[iCurSel].user.IdleTimeoutAc = Sec[tmp];
}
- tmp = SendMessage(GetDlgItem(hwndDlg, IDC_STANDBYDCLIST),
+ tmp = (INT) SendMessage(GetDlgItem(hwndDlg, IDC_STANDBYDCLIST),
CB_GETCURSEL,
0,
(LPARAM)0);
@@ -534,7 +540,7 @@
{
gPP[iCurSel].user.IdleTimeoutDc = Sec[tmp];
}
- tmp = SendMessage(GetDlgItem(hwndDlg, IDC_HYBERNATEACLIST),
+ tmp = (INT) SendMessage(GetDlgItem(hwndDlg, IDC_HYBERNATEACLIST),
CB_GETCURSEL,
0,
(LPARAM)0);
@@ -542,7 +548,7 @@
{
gPP[iCurSel].mach.DozeS4TimeoutAc = Sec[tmp];
}
- tmp = SendMessage(GetDlgItem(hwndDlg, IDC_HYBERNATEDCLIST),
+ tmp = (INT) SendMessage(GetDlgItem(hwndDlg, IDC_HYBERNATEDCLIST),
CB_GETCURSEL,
0,
(LPARAM)0);