Silence more warnings. Patch by Waxdragon.

svn path=/trunk/; revision=16550
This commit is contained in:
Alex Ionescu 2005-07-13 02:02:08 +00:00
parent c855fc1edb
commit 2c8f96ecf4
9 changed files with 19 additions and 26 deletions

View file

@ -320,7 +320,6 @@ FdoQueryBusRelations(
PFDO_DEVICE_EXTENSION DeviceExtension;
PDEVICE_RELATIONS Relations;
PLIST_ENTRY CurrentEntry;
ANSI_STRING AnsiString;
ACPI_STATUS AcpiStatus;
PACPI_DEVICE Device;
NTSTATUS Status = STATUS_SUCCESS;

View file

@ -99,10 +99,7 @@ void reactos_input_keyboard();
void reactos_input_keyboard()
{
MSG msg;
BOOL fDone;
int disk_code = -1;
BOOL down;
BYTE oldDInputKeyState[256];
int t;

View file

@ -712,8 +712,6 @@ void getmousesvalue(LPDIRECTINPUTDEVICE8A iface);
int filp=0;
void getmousesvalue(LPDIRECTINPUTDEVICE8A iface)
{
static long last_event = 0;
POINT point;
SysMouseImpl *This = (SysMouseImpl *)iface;
@ -761,7 +759,6 @@ static HRESULT WINAPI SysMouseAImpl_Poll(LPDIRECTINPUTDEVICE8A iface)
{
int retValue = DI_OK;
SysMouseImpl *This = (SysMouseImpl *)iface;
if (poll_mouse==0) {
retValue=SysMouseAImpl_Acquire(iface);
poll_mouse=1;
@ -783,7 +780,6 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceState(
LPDIRECTINPUTDEVICE8A iface,DWORD len,LPVOID ptr
) {
SysMouseImpl *This = (SysMouseImpl *)iface;
POINT point;
#ifndef __REACTOS__
EnterCriticalSection(&(This->crit));

View file

@ -367,20 +367,20 @@ static NTSTATUS getInterfaceInfoSet( HANDLE tcpFile,
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 @@ NTSTATUS deleteIpAddress( ULONG NteContext )
{
HANDLE tcpFile;
NTSTATUS status = openTcpFile( &tcpFile );
USHORT TheNteContext = NteContext;
IO_STATUS_BLOCK Iosb;
DPRINT("Called.\n");

View file

@ -92,12 +92,10 @@ typedef VOID (*EnumInterfacesFunc)( HKEY ChildKeyHandle,
*/
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 @@ static void MakeNameServerList( PNAME_SERVER_LIST_PRIVATE PrivateData ) {
}
PIPHLP_RES_INFO getResInfo() {
DWORD result = ERROR_SUCCESS, dwSize, i, ServerCount, ExtraServer;
DWORD i, ServerCount, ExtraServer;
HKEY hKey;
LONG errCode;
PWCHAR Str;

View file

@ -1529,7 +1529,7 @@ static HRESULT _SHGetProfilesValue(HKEY profilesKey, LPCWSTR szValueName,
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);

View file

@ -135,10 +135,8 @@ static BOOL WININET_GetSetPassword( HWND hdlg, LPCWSTR szServer,
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 @@ static BOOL WININET_GetSetPassword( HWND hdlg, LPCWSTR szServer,
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) );

View file

@ -723,8 +723,6 @@ BOOL MMDRV_Init(void)
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 @@ BOOL MMDRV_Init(void)
}
#ifndef __REACTOS__
char* p1;
char* p2;
p1 = driver_buffer;
while (p1) {
p2 = strchr(p1, ';');

View file

@ -639,7 +639,7 @@ LRESULT WINAPI MainProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
break;
default:
{
int ret = parse(wParam, lParam);
parse(wParam, lParam);
}
} // switch WM_CHAR