Silence more warnings. Patch by Waxdragon.
Modified: trunk/reactos/drivers/bus/acpi/ospm/fdo.c
Modified: trunk/reactos/lib/dinput/keyboard.c
Modified: trunk/reactos/lib/dinput/mouse.c
Modified: trunk/reactos/lib/iphlpapi/ifenum_reactos.c
Modified: trunk/reactos/lib/iphlpapi/resinfo_reactos.c
Modified: trunk/reactos/lib/shell32/shellpath.c
Modified: trunk/reactos/lib/wininet/dialogs.c
Modified: trunk/reactos/lib/winmm/lolvldrv.c
Modified: trunk/reactos/subsys/system/calc/winecalc.c
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/fdo.c
--- trunk/reactos/drivers/bus/acpi/ospm/fdo.c 2005-07-13 01:41:13 UTC
(rev 16549)
+++ trunk/reactos/drivers/bus/acpi/ospm/fdo.c 2005-07-13 02:02:08 UTC
(rev 16550)
@@ -320,7 +320,6 @@
PFDO_DEVICE_EXTENSION DeviceExtension;
PDEVICE_RELATIONS Relations;
PLIST_ENTRY CurrentEntry;
- ANSI_STRING AnsiString;
ACPI_STATUS AcpiStatus;
PACPI_DEVICE Device;
NTSTATUS Status = STATUS_SUCCESS;
_____
Modified: trunk/reactos/lib/dinput/keyboard.c
--- trunk/reactos/lib/dinput/keyboard.c 2005-07-13 01:41:13 UTC (rev
16549)
+++ trunk/reactos/lib/dinput/keyboard.c 2005-07-13 02:02:08 UTC (rev
16550)
@@ -99,10 +99,7 @@
void reactos_input_keyboard()
{
- MSG msg;
- BOOL fDone;
int disk_code = -1;
- BOOL down;
BYTE oldDInputKeyState[256];
int t;
_____
Modified: trunk/reactos/lib/dinput/mouse.c
--- trunk/reactos/lib/dinput/mouse.c 2005-07-13 01:41:13 UTC (rev
16549)
+++ trunk/reactos/lib/dinput/mouse.c 2005-07-13 02:02:08 UTC (rev
16550)
@@ -712,8 +712,6 @@
int filp=0;
void getmousesvalue(LPDIRECTINPUTDEVICE8A iface)
{
- static long last_event = 0;
-
POINT point;
SysMouseImpl *This = (SysMouseImpl *)iface;
@@ -761,7 +759,6 @@
{
int retValue = DI_OK;
-SysMouseImpl *This = (SysMouseImpl *)iface;
if (poll_mouse==0) {
retValue=SysMouseAImpl_Acquire(iface);
poll_mouse=1;
@@ -783,7 +780,6 @@
LPDIRECTINPUTDEVICE8A iface,DWORD len,LPVOID ptr
) {
SysMouseImpl *This = (SysMouseImpl *)iface;
- POINT point;
#ifndef __REACTOS__
EnterCriticalSection(&(This->crit));
_____
Modified: trunk/reactos/lib/iphlpapi/ifenum_reactos.c
--- trunk/reactos/lib/iphlpapi/ifenum_reactos.c 2005-07-13 01:41:13 UTC
(rev 16549)
+++ trunk/reactos/lib/iphlpapi/ifenum_reactos.c 2005-07-13 02:02:08 UTC
(rev 16550)
@@ -367,20 +367,20 @@
DWORD numAddrs;
IPAddrEntry *addrs;
TDIEntityID ip_ent;
- int j,k;
+ int j;
interfaceInfoComplete = FALSE;
status = getNthIpEntity( tcpFile, 0, &ip_ent );
if( NT_SUCCESS(status) )
status = tdiGetIpAddrsForIpEntity
( tcpFile, &ip_ent, &addrs, &numAddrs );
- for( k = 0; k < numAddrs && NT_SUCCESS(status); k++
) {
- DPRINT("ADDR %d: index %d (target %d)\n", k,
addrs[k].iae_index, infoSetInt[curInterf].if_info.ent.if_index);
- if( addrs[k].iae_index ==
+ for( j = 0; j < numAddrs && NT_SUCCESS(status); j++
) {
+ DPRINT("ADDR %d: index %d (target %d)\n", j,
addrs[j].iae_index, infoSetInt[curInterf].if_info.ent.if_index);
+ if( addrs[j].iae_index ==
infoSetInt[curInterf].if_info.ent.if_index )
{
memcpy( &infoSetInt[curInterf].ip_addr,
- &addrs[k],
- sizeof( addrs[k] ) );
+ &addrs[j],
+ sizeof( addrs[j] ) );
curInterf++;
break;
}
@@ -847,7 +847,6 @@
{
HANDLE tcpFile;
NTSTATUS status = openTcpFile( &tcpFile );
- USHORT TheNteContext = NteContext;
IO_STATUS_BLOCK Iosb;
DPRINT("Called.\n");
_____
Modified: trunk/reactos/lib/iphlpapi/resinfo_reactos.c
--- trunk/reactos/lib/iphlpapi/resinfo_reactos.c 2005-07-13
01:41:13 UTC (rev 16549)
+++ trunk/reactos/lib/iphlpapi/resinfo_reactos.c 2005-07-13
02:02:08 UTC (rev 16550)
@@ -92,12 +92,10 @@
*/
static void EnumInterfaces( PVOID Data, EnumInterfacesFunc cb ) {
- HKEY RegHandle, TcpipHandle;
+ HKEY RegHandle;
HKEY ChildKeyHandle = 0;
PWCHAR RegKeyToEnumerate =
L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Interfaces";
- PWCHAR RegKeyForTcpip =
- L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters";
PWCHAR ChildKeyName = 0;
DWORD CurrentInterface;
@@ -202,7 +200,7 @@
}
PIPHLP_RES_INFO getResInfo() {
- DWORD result = ERROR_SUCCESS, dwSize, i, ServerCount, ExtraServer;
+ DWORD i, ServerCount, ExtraServer;
HKEY hKey;
LONG errCode;
PWCHAR Str;
_____
Modified: trunk/reactos/lib/shell32/shellpath.c
--- trunk/reactos/lib/shell32/shellpath.c 2005-07-13 01:41:13 UTC
(rev 16549)
+++ trunk/reactos/lib/shell32/shellpath.c 2005-07-13 02:02:08 UTC
(rev 16550)
@@ -1529,7 +1529,7 @@
static HRESULT _SHExpandEnvironmentStrings(LPCWSTR szSrc, LPWSTR
szDest)
{
HRESULT hr = S_OK;
- WCHAR szTemp[MAX_PATH], szProfilesPrefix[MAX_PATH] = { 0 };
+ WCHAR szTemp[MAX_PATH];
TRACE("%s, %p\n", debugstr_w(szSrc), szDest);
_____
Modified: trunk/reactos/lib/wininet/dialogs.c
--- trunk/reactos/lib/wininet/dialogs.c 2005-07-13 01:41:13 UTC (rev
16549)
+++ trunk/reactos/lib/wininet/dialogs.c 2005-07-13 02:02:08 UTC (rev
16550)
@@ -135,10 +135,8 @@
WCHAR szResource[0x80], szUserPass[0x40];
LPWSTR p;
HWND hUserItem, hPassItem;
- DWORD r, dwMagic = 19;
- UINT r_len, u_len;
+ UINT r_len;
WORD sz;
- static const WCHAR szColon[] = { ':',0 };
static const WCHAR szbs[] = { '/', 0 };
hUserItem = GetDlgItem( hdlg, IDC_USERNAME );
@@ -158,6 +156,11 @@
if( bSet )
{
#ifndef __REACTOS__
+
+ DWORD r, dwMagic = 19;
+ UNIT u_len;
+ static const WCHAR szColon[] = { ':',0 };
+
szUserPass[0] = 0;
GetWindowTextW( hUserItem, szUserPass,
(sizeof szUserPass-1)/sizeof(WCHAR) );
_____
Modified: trunk/reactos/lib/winmm/lolvldrv.c
--- trunk/reactos/lib/winmm/lolvldrv.c 2005-07-13 01:41:13 UTC (rev
16549)
+++ trunk/reactos/lib/winmm/lolvldrv.c 2005-07-13 02:02:08 UTC (rev
16550)
@@ -723,8 +723,6 @@
char driver_buffer[256];
char mapper_buffer[256];
char midi_buffer[256];
- char* p1;
- char* p2;
DWORD type, size;
BOOL ret = FALSE;
TRACE("()\n");
@@ -751,6 +749,9 @@
}
#ifndef __REACTOS__
+ char* p1;
+ char* p2;
+
p1 = driver_buffer;
while (p1) {
p2 = strchr(p1, ';');
_____
Modified: trunk/reactos/subsys/system/calc/winecalc.c
--- trunk/reactos/subsys/system/calc/winecalc.c 2005-07-13 01:41:13 UTC
(rev 16549)
+++ trunk/reactos/subsys/system/calc/winecalc.c 2005-07-13 02:02:08 UTC
(rev 16550)
@@ -639,7 +639,7 @@
break;
default:
{
- int ret = parse(wParam, lParam);
+ parse(wParam, lParam);
}
} // switch WM_CHAR