[ros-kernel] some patches to fix some warnnings

Jonathan Wilson jonwil at tpgi.com.au
Thu Nov 13 11:06:24 CET 2003


-------------- next part --------------
Index: drivers/bus/acpi/events/evxfregn.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/bus/acpi/events/evxfregn.c,v
retrieving revision 1.1
diff -u -w -r1.1 evxfregn.c
--- drivers/bus/acpi/events/evxfregn.c	1 May 2001 23:00:01 -0000	1.1
+++ drivers/bus/acpi/events/evxfregn.c	13 Nov 2003 02:25:14 -0000
@@ -71,8 +71,7 @@
 	/* Parameter validation */
 
 	if ((!device)   ||
-		((!handler)  && (handler != ACPI_DEFAULT_HANDLER)) ||
-		(space_id > ACPI_MAX_ADDRESS_SPACE)) {
+		((!handler)  && (handler != ACPI_DEFAULT_HANDLER))) {
 		return (AE_BAD_PARAMETER);
 	}
 
@@ -279,8 +278,7 @@
 	/* Parameter validation */
 
 	if ((!device)   ||
-		((!handler)  && (handler != ACPI_DEFAULT_HANDLER)) ||
-		(space_id > ACPI_MAX_ADDRESS_SPACE)) {
+		((!handler)  && (handler != ACPI_DEFAULT_HANDLER))) {
 		return (AE_BAD_PARAMETER);
 	}
 
Index: drivers/bus/acpi/ospm/acpienum.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/bus/acpi/ospm/acpienum.c,v
retrieving revision 1.3
diff -u -w -r1.3 acpienum.c
--- drivers/bus/acpi/ospm/acpienum.c	23 Aug 2001 17:32:04 -0000	1.3
+++ drivers/bus/acpi/ospm/acpienum.c	13 Nov 2003 02:25:16 -0000
@@ -109,7 +109,6 @@
   BM_HANDLE_LIST HandleList;
   PACPI_DEVICE AcpiDevice;
   ACPI_STATUS AcpiStatus;
-  BM_HANDLE DeviceHandle;
 	BM_DEVICE_ID Criteria;
   KIRQL OldIrql;
   ULONG i;
@@ -174,7 +173,6 @@
   BM_HANDLE_LIST HandleList;
   PACPI_DEVICE AcpiDevice;
   ACPI_STATUS AcpiStatus;
-  BM_HANDLE DeviceHandle;
 	BM_DEVICE_ID Criteria;
   BM_NODE *Node;
   KIRQL OldIrql;
Index: drivers/bus/acpi/ospm/fdo.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/bus/acpi/ospm/fdo.c,v
retrieving revision 1.2
diff -u -w -r1.2 fdo.c
--- drivers/bus/acpi/ospm/fdo.c	5 May 2002 14:57:45 -0000	1.2
+++ drivers/bus/acpi/ospm/fdo.c	13 Nov 2003 02:25:18 -0000
@@ -163,7 +163,6 @@
   ACPI_DRIVER_FUNCTION Terminate)
 {
   ACPI_STATUS AcpiStatus;
-  PACPI_DEVICE AcpiDevice;
 
   AcpiStatus = Initialize();
   if (!ACPI_SUCCESS(AcpiStatus)) {
@@ -198,8 +197,6 @@
 {
   NTSTATUS Status;
 
-  ULONG j;
-
   Status = ACPIInitializeInternalDriver(DeviceExtension,
     bn_initialize, bn_terminate);
 
Index: drivers/bus/acpi/ospm/osl.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/bus/acpi/ospm/osl.c,v
retrieving revision 1.6
diff -u -w -r1.6 osl.c
--- drivers/bus/acpi/ospm/osl.c	13 Jan 2003 01:11:12 -0000	1.6
+++ drivers/bus/acpi/ospm/osl.c	13 Nov 2003 02:25:21 -0000
@@ -34,7 +34,6 @@
 static ULONG AcpiIrqNumber = 0;
 static KDPC AcpiDpc;
 static PVOID IVTVirtualAddress = NULL;
-static PVOID BDAVirtualAddress = NULL;
 
 
 VOID STDCALL
@@ -525,7 +524,6 @@
 	u32                     units,
 	u32                     timeout)
 {
-  ACPI_STATUS Status = AE_OK;
   PFAST_MUTEX Mutex = (PFAST_MUTEX)handle;
 
   if (!Mutex || (units < 1)) {
Index: drivers/bus/acpi/ospm/pdo.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/bus/acpi/ospm/pdo.c,v
retrieving revision 1.1
diff -u -w -r1.1 pdo.c
--- drivers/bus/acpi/ospm/pdo.c	23 Aug 2001 17:32:04 -0000	1.1
+++ drivers/bus/acpi/ospm/pdo.c	13 Nov 2003 02:25:22 -0000
@@ -23,7 +23,6 @@
   PIO_STACK_LOCATION IrpSp)
 {
   PPDO_DEVICE_EXTENSION DeviceExtension;
-  ACPI_STATUS AcpiStatus;
   NTSTATUS Status;
 
   DPRINT("Called\n");
@@ -55,9 +54,7 @@
   PIO_STACK_LOCATION IrpSp)
 {
   PPDO_DEVICE_EXTENSION DeviceExtension;
-  ACPI_STATUS AcpiStatus;
   NTSTATUS Status;
-  ULONG AcpiState;
 
   DPRINT("Called\n");
 
Index: drivers/bus/isapnp/isapnp.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/bus/isapnp/isapnp.c,v
retrieving revision 1.7
diff -u -w -r1.7 isapnp.c
--- drivers/bus/isapnp/isapnp.c	20 Sep 2003 20:31:57 -0000	1.7
+++ drivers/bus/isapnp/isapnp.c	13 Nov 2003 02:25:31 -0000
@@ -484,7 +484,6 @@
   PISAPNP_CONFIGURATION_LIST *NewList)
 {
   PISAPNP_CONFIGURATION_LIST List;
-  NTSTATUS Status;
 
   DPRINT("Adding resource list for logical device %d on card %d (Priority %d)\n",
         LogicalDevice->Number,
@@ -962,8 +961,8 @@
 		if (!ReadTag(&type, &Size, &Small))
 			return FALSE;
 
-		if (skip && !(Small && (type == ISAPNP_SRIN_LDEVICE_ID)
-      || (type == ISAPNP_SRIN_END_TAG)))
+                if (skip && !(Small && ((type == ISAPNP_SRIN_LDEVICE_ID)
+      || (type == ISAPNP_SRIN_END_TAG))))
 			goto skip;
 
     if (Small) {
@@ -1212,7 +1211,6 @@
   PLIST_ENTRY CurrentEntry, Entry;
   PISAPNP_CONFIGURATION_LIST List;
   PISAPNP_DESCRIPTOR Descriptor;
-  NTSTATUS Status;
   ULONG i;
 
   if (IsListEmpty(&LogicalDevice->Configuration))
@@ -1373,7 +1371,6 @@
 	ULONG csn;
 	UCHAR header[9], checksum;
   PISAPNP_CARD Card;
-  NTSTATUS Status;
 
   DPRINT("Called\n");
 
Index: drivers/bus/isapnp/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/bus/isapnp/makefile,v
retrieving revision 1.4
diff -u -w -r1.4 makefile
--- drivers/bus/isapnp/makefile	21 Aug 2001 20:13:10 -0000	1.4
+++ drivers/bus/isapnp/makefile	13 Nov 2003 02:25:31 -0000
@@ -8,6 +8,8 @@
 
 TARGET_OBJECTS = isapnp.o
 
+TARGET_CFLAGS = -Werror -Wall
+
 include $(PATH_TO_TOP)/rules.mak
 
 include $(TOOLS_PATH)/helper.mk
Index: drivers/bus/pci/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/bus/pci/makefile,v
retrieving revision 1.1
diff -u -w -r1.1 makefile
--- drivers/bus/pci/makefile	16 Sep 2001 13:18:24 -0000	1.1
+++ drivers/bus/pci/makefile	13 Nov 2003 02:25:31 -0000
@@ -6,6 +6,8 @@
 
 TARGET_NAME = pci
 
+TARGET_CFLAGS = -Wall -Werror
+
 TARGET_OBJECTS = fdo.o pci.o pdo.o
 
 include $(PATH_TO_TOP)/rules.mak
Index: drivers/bus/pci/pci.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/bus/pci/pci.c,v
retrieving revision 1.3
diff -u -w -r1.3 pci.c
--- drivers/bus/pci/pci.c	26 Apr 2003 07:06:55 -0000	1.3
+++ drivers/bus/pci/pci.c	13 Nov 2003 02:25:34 -0000
@@ -48,6 +48,8 @@
 	*Value = READ_PORT_UCHAR((PUCHAR)(IOADDR(Slot, Offset)));
 	WRITE_PORT_UCHAR((PUCHAR)0xCF8, 0);
 	return STATUS_SUCCESS;
+     case pbtUnknown:
+        break;
      }
    return STATUS_UNSUCCESSFUL;
 }
@@ -77,6 +79,8 @@
 	*Value = READ_PORT_USHORT((PUSHORT)(IOADDR(Slot, Offset)));
 	WRITE_PORT_UCHAR((PUCHAR)0xCF8, 0);
 	return STATUS_SUCCESS;
+     case pbtUnknown:
+        break;
      }
    return STATUS_UNSUCCESSFUL;
 }
@@ -106,6 +110,8 @@
 	*Value = READ_PORT_ULONG((PULONG)(IOADDR(Slot, Offset)));
 	WRITE_PORT_UCHAR((PUCHAR)0xCF8, 0);
 	return STATUS_SUCCESS;
+     case pbtUnknown:
+        break;
      }
    return STATUS_UNSUCCESSFUL;
 }
@@ -130,6 +136,8 @@
 	WRITE_PORT_UCHAR((PUCHAR)(IOADDR(Slot,Offset)), Value);
 	WRITE_PORT_UCHAR((PUCHAR)0xCF8, 0);
 	return STATUS_SUCCESS;
+     case pbtUnknown:
+        break;
      }
    return STATUS_UNSUCCESSFUL;
 }
@@ -159,6 +167,8 @@
 	WRITE_PORT_USHORT((PUSHORT)(IOADDR(Slot, Offset)), Value);
 	WRITE_PORT_UCHAR((PUCHAR)0xCF8, 0);
 	return STATUS_SUCCESS;
+     case pbtUnknown:
+        break;
      }
    return STATUS_UNSUCCESSFUL;
 }
@@ -188,6 +198,8 @@
 	WRITE_PORT_ULONG((PULONG)(IOADDR(Slot, Offset)), Value);
 	WRITE_PORT_UCHAR((PUCHAR)0xCF8, 0);
 	return STATUS_SUCCESS;
+     case pbtUnknown:
+        break;
      }
    return STATUS_UNSUCCESSFUL;
 }
Index: drivers/bus/pci/pci.h
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/bus/pci/pci.h,v
retrieving revision 1.2
diff -u -w -r1.2 pci.h
--- drivers/bus/pci/pci.h	5 May 2002 14:57:45 -0000	1.2
+++ drivers/bus/pci/pci.h	13 Nov 2003 02:25:34 -0000
@@ -108,6 +108,13 @@
 PCI_BUS_TYPE
 PciGetBusConfigType(VOID);
 
+ULONG
+PciGetBusData(ULONG BusNumber,
+	       ULONG SlotNumber,
+	       PVOID Buffer,
+	       ULONG Offset,
+               ULONG Length);
+
 BOOLEAN
 PciCreateUnicodeString(
   PUNICODE_STRING	Destination,
Index: drivers/dd/beep/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/beep/makefile,v
retrieving revision 1.13
diff -u -w -r1.13 makefile
--- drivers/dd/beep/makefile	21 Aug 2001 20:13:10 -0000	1.13
+++ drivers/dd/beep/makefile	13 Nov 2003 02:25:34 -0000
@@ -8,6 +8,8 @@
 
 TARGET_OBJECTS = beep.o
 
+TARGET_CFLAGS = -Werror -Wall
+
 include $(PATH_TO_TOP)/rules.mak
 
 include $(TOOLS_PATH)/helper.mk
Index: drivers/dd/blue/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/blue/makefile,v
retrieving revision 1.20
diff -u -w -r1.20 makefile
--- drivers/dd/blue/makefile	5 Apr 2003 09:37:41 -0000	1.20
+++ drivers/dd/blue/makefile	13 Nov 2003 02:25:34 -0000
@@ -10,6 +10,8 @@
 
 TARGET_OBJECTS = blue.o
 
+TARGET_CFLAGS = -Wall -Werror
+
 include $(PATH_TO_TOP)/rules.mak
 
 include $(TOOLS_PATH)/helper.mk
Index: drivers/dd/bootvid/Makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/bootvid/Makefile,v
retrieving revision 1.1
diff -u -w -r1.1 Makefile
--- drivers/dd/bootvid/Makefile	24 Aug 2003 12:11:13 -0000	1.1
+++ drivers/dd/bootvid/Makefile	13 Nov 2003 02:25:34 -0000
@@ -8,6 +8,8 @@
 
 TARGET_OBJECTS = bootvid.o pixelsup_i386.o
 
+TARGET_CFLAGS = -Wall -Werror
+
 include $(PATH_TO_TOP)/rules.mak
 
 include $(TOOLS_PATH)/helper.mk
Index: drivers/dd/bootvid/bootvid.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/bootvid/bootvid.c,v
retrieving revision 1.3
diff -u -w -r1.3 bootvid.c
--- drivers/dd/bootvid/bootvid.c	20 Sep 2003 20:12:43 -0000	1.3
+++ drivers/dd/bootvid/bootvid.c	13 Nov 2003 02:25:39 -0000
@@ -788,7 +788,6 @@
 {
   PDEVICE_OBJECT BootVidDevice;
   UNICODE_STRING DeviceName;
-  UNICODE_STRING DosName;
   NTSTATUS Status;
 
   BootVidDriverObject = DriverObject;
Index: drivers/dd/debugout/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/debugout/makefile,v
retrieving revision 1.1
diff -u -w -r1.1 makefile
--- drivers/dd/debugout/makefile	22 May 2003 15:11:29 -0000	1.1
+++ drivers/dd/debugout/makefile	13 Nov 2003 02:25:39 -0000
@@ -8,6 +8,8 @@
 
 TARGET_OBJECTS = debugout.o
 
+TARGET_CFLAGS = -Wall -Werror
+
 include $(PATH_TO_TOP)/rules.mak
 
 include $(TOOLS_PATH)/helper.mk
Index: drivers/dd/floppy/Makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/floppy/Makefile,v
retrieving revision 1.11
diff -u -w -r1.11 Makefile
--- drivers/dd/floppy/Makefile	5 Apr 2003 09:37:42 -0000	1.11
+++ drivers/dd/floppy/Makefile	13 Nov 2003 02:25:39 -0000
@@ -8,6 +8,8 @@
 
 TARGET_NAME = floppy
 
+TARGET_CFLAGS = -Wall -Werror
+
 TARGET_OBJECTS = \
   dpc.o \
   floppy.o \
Index: drivers/dd/floppy/dpc.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/floppy/dpc.c,v
retrieving revision 1.6
diff -u -w -r1.6 dpc.c
--- drivers/dd/floppy/dpc.c	23 Oct 2003 18:48:13 -0000	1.6
+++ drivers/dd/floppy/dpc.c	13 Nov 2003 02:25:40 -0000
@@ -55,7 +55,6 @@
 {
    PCONTROLLER_OBJECT Controller = (PCONTROLLER_OBJECT)Context;
    PFLOPPY_CONTROLLER_EXTENSION ControllerExtension = (PFLOPPY_CONTROLLER_EXTENSION)Controller->ControllerExtension;
-   PFLOPPY_DEVICE_EXTENSION DeviceExtension = (PFLOPPY_DEVICE_EXTENSION)ControllerExtension->Device->DeviceExtension;
 
    // queue call to turn off motor
    IoAllocateController( Controller,
@@ -131,8 +130,6 @@
 {
   PCONTROLLER_OBJECT Controller = (PCONTROLLER_OBJECT)Context;
   PFLOPPY_CONTROLLER_EXTENSION ControllerExtension = (PFLOPPY_CONTROLLER_EXTENSION)Controller->ControllerExtension;
-  PFLOPPY_DEVICE_EXTENSION DeviceExtension = (PFLOPPY_DEVICE_EXTENSION)ControllerExtension->Device->DeviceExtension;
-  DWORD SectorSize = 128 << ControllerExtension->SectorSizeCode;
   PIO_STACK_LOCATION Stk = IoGetCurrentIrpStackLocation( ControllerExtension->Irp );
   BOOLEAN WriteToDevice = Stk->MajorFunction == IRP_MJ_WRITE ? TRUE : FALSE;
 
Index: drivers/dd/floppy/floppy.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/floppy/floppy.c,v
retrieving revision 1.22
diff -u -w -r1.22 floppy.c
--- drivers/dd/floppy/floppy.c	4 Nov 2003 23:30:59 -0000	1.22
+++ drivers/dd/floppy/floppy.c	13 Nov 2003 02:25:47 -0000
@@ -37,15 +37,12 @@
                        int Index)
 {
    PCONTROLLER_OBJECT ControllerObject;
-   PFLOPPY_CONTROLLER_EXTENSION ControllerExtension;
    PFLOPPY_DEVICE_EXTENSION DeviceExtension;
+   PFLOPPY_CONTROLLER_EXTENSION ControllerExtension = (PFLOPPY_CONTROLLER_EXTENSION)DeviceExtension->Controller->ControllerExtension;
    UNICODE_STRING DeviceName;
    NTSTATUS Status;
    PDEVICE_OBJECT DeviceObject;
-   PCONFIGURATION_INFORMATION ConfigInfo;
    LARGE_INTEGER Timeout;
-   BYTE Byte;
-   int c;
    PCONFIGURATION_INFORMATION Config;
    DEVICE_DESCRIPTION DeviceDescription;
    ULONG MaxMapRegs;
@@ -443,8 +440,6 @@
 FloppyDispatchReadWrite(PDEVICE_OBJECT DeviceObject,
 		        PIRP Irp)
 {
-  PFLOPPY_DEVICE_EXTENSION DeviceExtension = (PFLOPPY_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
-  PFLOPPY_CONTROLLER_EXTENSION ControllerExtension = (PFLOPPY_CONTROLLER_EXTENSION)DeviceExtension->Controller->ControllerExtension;
   PIO_STACK_LOCATION Stk = IoGetCurrentIrpStackLocation( Irp );
   KIRQL oldlvl;
   
Index: drivers/dd/floppy/isr.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/floppy/isr.c,v
retrieving revision 1.6
diff -u -w -r1.6 isr.c
--- drivers/dd/floppy/isr.c	4 Nov 2003 23:30:59 -0000	1.6
+++ drivers/dd/floppy/isr.c	13 Nov 2003 02:25:49 -0000
@@ -129,10 +129,6 @@
   // read result registers from read or write command, and queue dpc to start next operation
   PFLOPPY_CONTROLLER_EXTENSION ControllerExtension = (PFLOPPY_CONTROLLER_EXTENSION)Controller->ControllerExtension;
   BYTE Cyl, Head, Sector;
-  PFLOPPY_DEVICE_EXTENSION DeviceExtension = (PFLOPPY_DEVICE_EXTENSION)ControllerExtension->Device->DeviceExtension;
-  PIO_STACK_LOCATION Stk = IoGetCurrentIrpStackLocation( ControllerExtension->Irp );
-  BOOLEAN WriteToDevice = Stk->MajorFunction == IRP_MJ_WRITE ? TRUE : FALSE;
-
 
   ControllerExtension->St0 = FloppyReadDATA( ControllerExtension->PortBase );
   KeStallExecutionProcessor( 100 );
Index: drivers/dd/ide/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/ide/makefile,v
retrieving revision 1.26
diff -u -w -r1.26 makefile
--- drivers/dd/ide/makefile	4 Jul 2002 19:56:32 -0000	1.26
+++ drivers/dd/ide/makefile	13 Nov 2003 02:25:49 -0000
@@ -6,6 +6,8 @@
 
 TARGET_NAME = ide
 
+TARGET_CFLAGS = -Wall -Werror
+
 TARGET_OBJECTS = ide.o
 
 TARGET_HEADERS = *.h
Index: drivers/dd/serial/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/serial/makefile,v
retrieving revision 1.15
diff -u -w -r1.15 makefile
--- drivers/dd/serial/makefile	21 Aug 2001 20:13:11 -0000	1.15
+++ drivers/dd/serial/makefile	13 Nov 2003 02:25:49 -0000
@@ -8,6 +8,8 @@
 
 TARGET_OBJECTS = serial.o
 
+TARGET_CFLAGS = -Wall -Werror
+
 include $(PATH_TO_TOP)/rules.mak
 
 include $(TOOLS_PATH)/helper.mk
Index: drivers/dd/serial/serial.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/serial/serial.c,v
retrieving revision 1.10
diff -u -w -r1.10 serial.c
--- drivers/dd/serial/serial.c	6 Oct 2002 13:16:26 -0000	1.10
+++ drivers/dd/serial/serial.c	13 Nov 2003 02:25:50 -0000
@@ -32,7 +32,6 @@
 {
         // Returns 0 if no UART detected
 
-        int olddata=inb_p(base+4);
         outb_p(base+4, 0x10);
         if ((inb_p(base+6) & 0xf0)) return 0;
         return 1;
Index: drivers/dd/vga/display/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/vga/display/makefile,v
retrieving revision 1.20
diff -u -w -r1.20 makefile
--- drivers/dd/vga/display/makefile	25 Feb 2003 23:08:51 -0000	1.20
+++ drivers/dd/vga/display/makefile	13 Nov 2003 02:25:50 -0000
@@ -8,6 +8,8 @@
 
 TARGET_NAME = vgaddi
 
+TARGET_CFLAGS = -Wall -Werror
+
 MAIN_OBJECTS = \
   main/enable.o
 
Index: drivers/dd/vga/display/vgaddi.h
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/vga/display/vgaddi.h,v
retrieving revision 1.9
diff -u -w -r1.9 vgaddi.h
--- drivers/dd/vga/display/vgaddi.h	8 Aug 2003 16:13:18 -0000	1.9
+++ drivers/dd/vga/display/vgaddi.h	13 Nov 2003 02:25:52 -0000
@@ -234,6 +234,11 @@
 VOID
 VGADDI_InitializeOffScreenMem(ULONG Start, ULONG Length);
 
+BOOL InitPointer(PPDEV ppdev);
+DWORD getAvailableModes(HANDLE Driver,
+                        PVIDEO_MODE_INFORMATION *modeInformation,
+                        DWORD *ModeSize);
+
 void FASTCALL
 vgaReadScan ( int x, int y, int w, void *b );
 
Index: drivers/dd/vga/display/main/enable.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/vga/display/main/enable.c,v
retrieving revision 1.28
diff -u -w -r1.28 enable.c
--- drivers/dd/vga/display/main/enable.c	4 May 2003 15:41:40 -0000	1.28
+++ drivers/dd/vga/display/main/enable.c	13 Nov 2003 02:25:56 -0000
@@ -365,7 +365,6 @@
 {
   PPDEV ppdev = (PPDEV)PDev;
   PDEVSURF pdsurf = ppdev->AssociatedSurf;
-  PSAVED_SCREEN_BITS pSSB, pSSBNext;
   CHECKPOINT;
   DPRINT( "KMDriver: %x\n", ppdev->KMDriver );
   //  EngFreeMem(pdsurf->BankSelectInfo);
@@ -603,6 +602,7 @@
 
     } while (--NumModes);
   }
+  return OutputSize;
 }
 
 /* EOF */
Index: drivers/dd/vga/display/objects/bitblt.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/vga/display/objects/bitblt.c,v
retrieving revision 1.26
diff -u -w -r1.26 bitblt.c
--- drivers/dd/vga/display/objects/bitblt.c	26 Sep 2003 18:38:46 -0000	1.26
+++ drivers/dd/vga/display/objects/bitblt.c	13 Nov 2003 02:25:58 -0000
@@ -62,22 +62,18 @@
                             Source->pvScan0 + SourcePoint->y * Source->lDelta + (SourcePoint->x >> 1),
 		            Source->lDelta, ColorTranslation);
     }
+  return FALSE;
 }
 
 BOOL 
 VGAtoDIB(SURFOBJ *Dest, SURFOBJ *Source, XLATEOBJ *ColorTranslation,
 	 RECTL *DestRect, POINTL *SourcePoint)
 {
-  LONG i, j, dx, dy, RGBulong;
-  BYTE  *GDIpos, *initial, idxColor;
+  LONG i, j, dx, dy;
+  BYTE  *GDIpos, *initial;
   
   // Used by the temporary DFB
-  PDEVSURF	TargetSurf;
   DEVSURF	DestDevSurf;
-  PSURFOBJ	TargetBitmapSurf;
-  HBITMAP	hTargetBitmap;
-  SIZEL		InterSize;
-  POINTL	ZeroPoint;
 
   // FIXME: Optimize to retrieve entire bytes at a time (see /display/vgavideo/vgavideo.c:vgaGetByte)
 
@@ -106,12 +102,14 @@
        GDIpos = initial + Dest->lDelta;
     }
   }
+  return FALSE;
 }
 
 BOOL 
 DFBtoVGA(SURFOBJ *Dest, SURFOBJ *Source, XLATEOBJ *ColorTranslation,
 	 RECTL *DestRect, POINTL *SourcePoint)
 {
+  return FALSE;
   // Do DFBs need color translation??
 }
 
@@ -119,6 +117,7 @@
 VGAtoDFB(SURFOBJ *Dest, SURFOBJ *Source, XLATEOBJ *ColorTranslation,
 	 RECTL *DestRect, POINTL *SourcePoint)
 {
+  return FALSE;
   // Do DFBs need color translation??
 }
 
@@ -176,7 +175,6 @@
 {
   UCHAR SolidColor = 0;
   ULONG Left;
-  ULONG Right;
   ULONG Length;
   PUCHAR Video;
   UCHAR Mask;
@@ -298,8 +296,6 @@
               PXLATEOBJ ColorTranslation, PRECTL DestRect, PPOINTL SourcePoint,
               PPOINTL MaskOrigin, PBRUSHOBJ Brush, PPOINTL BrushOrigin, ROP4 Rop4)
 {
-  RECT_ENUM RectEnum;
-  BOOL EnumMore;
   PFN_VGABlt  BltOperation;
   ULONG SourceType;
 
@@ -341,8 +337,8 @@
                PPOINTL SourcePoint, PPOINTL MaskPoint, BRUSHOBJ* Brush,
 	       PPOINTL BrushPoint, ROP4 Rop4)
 {
-  LONG i, j, dx, dy, idxColor, RGBulong = 0, c8;
-  BYTE *initial, *tMask, *lMask;
+  LONG i, j, dx, dy, c8;
+  BYTE *tMask, *lMask;
 
   dx = DestRect->right  - DestRect->left;
   dy = DestRect->bottom - DestRect->top;
@@ -369,6 +365,7 @@
 	    }
 	}
     }
+  return TRUE;
 }
 
 BOOL STDCALL
Index: drivers/dd/vga/display/objects/lineto.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/vga/display/objects/lineto.c,v
retrieving revision 1.15
diff -u -w -r1.15 lineto.c
--- drivers/dd/vga/display/objects/lineto.c	11 Aug 2003 04:23:37 -0000	1.15
+++ drivers/dd/vga/display/objects/lineto.c	13 Nov 2003 02:26:00 -0000
@@ -303,7 +303,6 @@
 {
   LONG x, y, deltax, deltay, i, xchange, ychange, hx, vy;
   ULONG Pixel = Brush->iSolidColor;
-  RECTL DestRect;
   RECT_ENUM RectEnum;
   BOOL EnumMore;
 
Index: drivers/dd/vga/display/objects/paint.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/vga/display/objects/paint.c,v
retrieving revision 1.13
diff -u -w -r1.13 paint.c
--- drivers/dd/vga/display/objects/paint.c	20 Sep 2003 20:12:43 -0000	1.13
+++ drivers/dd/vga/display/objects/paint.c	13 Nov 2003 02:26:02 -0000
@@ -8,10 +8,10 @@
 BOOL VGADDIFillSolid(SURFOBJ *Surface, RECTL Dimensions, ULONG iColor)
 {
   int x, y, x2, y2, w, h;
-  ULONG offset, i, j, pre1;
+  ULONG offset, j, pre1;
   ULONG orgpre1, orgx, midpre1, tmppre1;
   ULONG ileftpix, imidpix, irightpix;
-  double leftpix, midpix, rightpix, temp;
+  double leftpix, midpix, rightpix;
   UCHAR a;
 
   DPRINT("VGADDIFillSolid: x:%d, y:%d, w:%d, h:%d\n", x, y, w, h);
Index: drivers/dd/vga/display/objects/pointer.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/vga/display/objects/pointer.c,v
retrieving revision 1.16
diff -u -w -r1.16 pointer.c
--- drivers/dd/vga/display/objects/pointer.c	10 Nov 2003 19:42:57 -0000	1.16
+++ drivers/dd/vga/display/objects/pointer.c	13 Nov 2003 02:26:04 -0000
@@ -218,7 +218,7 @@
   PPDEV ppdev = (PPDEV)pso->dhpdev;
   ULONG NewWidth, NewHeight;
   PUCHAR Src, Dest;
-  ULONG i, j;
+  ULONG i;
   
   if(!psoMask)
   {
@@ -292,7 +292,6 @@
 VOID
 VGADDI_HideCursor(PPDEV ppdev)
 {
-  ULONG i, j, cx, cy, bitpos;
   ULONG SizeX, SizeY;
 
   /* Display what was behind cursor */
@@ -311,7 +310,7 @@
 VOID
 VGADDI_ShowCursor(PPDEV ppdev)
 {
-  ULONG i, j, cx, cy;
+  ULONG cx, cy;
   PUCHAR AndMask, XorMask;
   ULONG SizeX, SizeY;
 
Index: drivers/dd/vga/display/objects/screen.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/vga/display/objects/screen.c,v
retrieving revision 1.6
diff -u -w -r1.6 screen.c
--- drivers/dd/vga/display/objects/screen.c	14 Jul 2003 17:33:51 -0000	1.6
+++ drivers/dd/vga/display/objects/screen.c	13 Nov 2003 02:26:05 -0000
@@ -104,10 +104,6 @@
 BOOL InitVGA(PPDEV ppdev, BOOL bFirst)
 {
   ULONG ReturnedDataLength;
-  VIDEO_MEMORY VideoMemory;
-  VIDEO_MEMORY_INFORMATION VideoMemoryInfo;
-
-  char* vidmem;
 
   ppdev->sizeSurf.cx = 640;
   ppdev->sizeSurf.cy = 480;
Index: drivers/dd/vga/display/vgavideo/vgavideo.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/vga/display/vgavideo/vgavideo.c,v
retrieving revision 1.27
diff -u -w -r1.27 vgavideo.c
--- drivers/dd/vga/display/vgavideo/vgavideo.c	26 Sep 2003 18:38:47 -0000	1.27
+++ drivers/dd/vga/display/vgavideo/vgavideo.c	13 Nov 2003 02:26:09 -0000
@@ -14,12 +14,6 @@
 char* vidmem;
 static ULONG UnpackPixel[256];
 
-static unsigned char saved_SEQ_mask;	/* 0x02 */
-static unsigned char saved_GC_eSR;	/* 0x01 */
-static unsigned char saved_GC_fun;	/* 0x03 */
-static unsigned char saved_GC_rmap;	/* 0x04 */
-static unsigned char saved_GC_mode;	/* 0x05 */
-static unsigned char saved_GC_mask;	/* 0x08 */
 static unsigned char leftMask;
 static int byteCounter;
 static unsigned char rightMask;
@@ -270,7 +264,7 @@
 BOOL vgaHLine(INT x, INT y, INT len, UCHAR c)
 {
   UCHAR a;
-  ULONG pre1, i;
+  ULONG pre1;
   ULONG orgpre1, orgx, midpre1;
   ULONG ileftpix, imidpix, irightpix;
 
@@ -672,7 +666,6 @@
   unsigned char data, mask, maskP;
   unsigned char *bp;
   unsigned char plane_mask;
-  int byte_per_line = SCREEN_X >> 3;
   int plane, i;
 
   ASSIGNVP4(x, y, vpP)
Index: drivers/dd/vga/display/vgavideo/vgavideo.h
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/vga/display/vgavideo/vgavideo.h,v
retrieving revision 1.12
diff -u -w -r1.12 vgavideo.h
--- drivers/dd/vga/display/vgavideo/vgavideo.h	11 Aug 2003 03:51:44 -0000	1.12
+++ drivers/dd/vga/display/vgavideo/vgavideo.h	13 Nov 2003 02:26:10 -0000
@@ -69,3 +69,7 @@
 
 #define mod8(n) ((n)&7)
 #define mod2(n) ((n)&1)
+void DIB_BltFromVGA(int x, int y, int w, int h, void *b, int Dest_lDelta);
+void DIB_BltToVGA(int x, int y, int w, int h, void *b, int Source_lDelta, int StartMod);
+void DIB_BltToVGAWithXlate(int x, int y, int w, int h, void *b, int Source_lDelta, PXLATEOBJ Xlate);
+void DIB_TransparentBltToVGA(int x, int y, int w, int h, void *b, int Source_lDelta, ULONG trans);
Index: drivers/dd/vga/miniport/initvga.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/vga/miniport/initvga.c,v
retrieving revision 1.22
diff -u -w -r1.22 initvga.c
--- drivers/dd/vga/miniport/initvga.c	11 Aug 2003 19:58:43 -0000	1.22
+++ drivers/dd/vga/miniport/initvga.c	13 Nov 2003 02:26:10 -0000
@@ -14,7 +14,6 @@
 void setMode(VideoMode mode)
 {
   unsigned char x;
-  unsigned int y, c, a, m, n;
 
   VideoPortWritePortUchar((PUCHAR)MISC, mode.Misc);
   VideoPortWritePortUchar((PUCHAR)STATUS, 0);
@@ -73,7 +72,6 @@
   VP_STATUS vps;
   
   // FIXME: Use Vidport to map the memory properly
-  vidmem = (char *)(0xd0000000 + 0xa0000);
   memset(&vxba, 0, sizeof(vxba));
   vxba.Eax = 0x0012;
   vps = VideoPortInt10(NULL, &vxba);
@@ -98,7 +96,6 @@
 
 VOID  VGAResetDevice(OUT PSTATUS_BLOCK  StatusBlock)
 {
-  char *vidmem;
   HANDLE Event;
   OBJECT_ATTRIBUTES Attr;
   UNICODE_STRING Name = UNICODE_STRING_INITIALIZER(L"\\TextConsoleRefreshEvent");
Index: drivers/dd/vga/miniport/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/vga/miniport/makefile,v
retrieving revision 1.10
diff -u -w -r1.10 makefile
--- drivers/dd/vga/miniport/makefile	15 Feb 2003 19:16:33 -0000	1.10
+++ drivers/dd/vga/miniport/makefile	13 Nov 2003 02:26:11 -0000
@@ -8,6 +8,8 @@
 
 TARGET_DDKLIBS = videoprt.a
 
+TARGET_CFLAGS = -Werror -Wall
+
 TARGET_OBJECTS = \
   initvga.o \
   vgamp.o \
Index: drivers/dd/vga/miniport/vgamp.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/dd/vga/miniport/vgamp.c,v
retrieving revision 1.11
diff -u -w -r1.11 vgamp.c
--- drivers/dd/vga/miniport/vgamp.c	24 Aug 2003 11:28:09 -0000	1.11
+++ drivers/dd/vga/miniport/vgamp.c	13 Nov 2003 02:26:13 -0000
@@ -9,7 +9,7 @@
 #define UNIMPLEMENTED do {DbgPrint("%s:%d: Function not implemented", __FILE__, __LINE__); for(;;);} while (0)
 
 #define VERSION "0.0.0"
-
+void InitVGAMode();
 //  ----------------------------------------------------  Forward Declarations
 static VP_STATUS STDCALL
 VGAFindAdapter(PVOID DeviceExtension,
Index: drivers/fs/cdfs/create.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/cdfs/create.c,v
retrieving revision 1.10
diff -u -w -r1.10 create.c
--- drivers/fs/cdfs/create.c	10 Nov 2003 11:32:08 -0000	1.10
+++ drivers/fs/cdfs/create.c	13 Nov 2003 02:26:15 -0000
@@ -52,7 +52,7 @@
 
   /* verify related object is a directory and target name
      don't start with \. */
-  if (Fcb->Entry.FileFlags & 0x02 == 0 ||
+  if ((Fcb->Entry.FileFlags & 0x02) == 0 ||
       pRelativeFileName[0] == L'\\')
     {
       return(STATUS_INVALID_PARAMETER);
Index: drivers/fs/cdfs/dirctl.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/cdfs/dirctl.c,v
retrieving revision 1.13
diff -u -w -r1.13 dirctl.c
--- drivers/fs/cdfs/dirctl.c	7 Aug 2003 11:47:32 -0000	1.13
+++ drivers/fs/cdfs/dirctl.c	13 Nov 2003 02:26:19 -0000
@@ -170,7 +170,6 @@
   ULONG len;
   ULONG DirIndex;
   ULONG Offset = 0;
-  ULONG Read;
   BOOLEAN IsRoot;
   PVOID Context = NULL;
   ULONG DirSize;
Index: drivers/fs/cdfs/fcb.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/cdfs/fcb.c,v
retrieving revision 1.15
diff -u -w -r1.15 fcb.c
--- drivers/fs/cdfs/fcb.c	7 Aug 2003 11:47:32 -0000	1.15
+++ drivers/fs/cdfs/fcb.c	13 Nov 2003 02:26:22 -0000
@@ -448,7 +448,6 @@
   WCHAR TempName[2];
   WCHAR Name[256];
   PVOID Block;
-  ULONG FirstSector;
   ULONG DirSize;
   PDIR_RECORD Record;
   ULONG Offset;
Index: drivers/fs/cdfs/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/cdfs/makefile,v
retrieving revision 1.6
diff -u -w -r1.6 makefile
--- drivers/fs/cdfs/makefile	10 Nov 2003 11:32:08 -0000	1.6
+++ drivers/fs/cdfs/makefile	13 Nov 2003 02:26:23 -0000
@@ -8,6 +8,8 @@
 
 TARGET_NAME = cdfs
 
+TARGET_CFLAGS = -Wall -Werror
+
 TARGET_OBJECTS = $(TARGET_NAME).o close.o common.o create.o dirctl.o \
                  fcb.o finfo.o fsctl.o misc.o rw.o volinfo.o cleanup.o
 
Index: drivers/fs/cdfs/rw.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/cdfs/rw.c,v
retrieving revision 1.11
diff -u -w -r1.11 rw.c
--- drivers/fs/cdfs/rw.c	9 Nov 2003 11:20:28 -0000	1.11
+++ drivers/fs/cdfs/rw.c	13 Nov 2003 02:26:24 -0000
@@ -58,8 +58,6 @@
  */
 {
   NTSTATUS Status = STATUS_SUCCESS;
-  PUCHAR TempBuffer;
-  ULONG TempLength;
   PCCB Ccb;
   PFCB Fcb;
 
@@ -159,7 +157,6 @@
 			Irp->Flags,
 			&ReturnedReadLength);
 
-ByeBye:
   if (NT_SUCCESS(Status))
     {
       if (FileObject->Flags & FO_SYNCHRONOUS_IO)
Index: drivers/fs/fs_rec/blockdev.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/fs_rec/blockdev.c,v
retrieving revision 1.3
diff -u -w -r1.3 blockdev.c
--- drivers/fs/fs_rec/blockdev.c	10 Nov 2003 17:09:29 -0000	1.3
+++ drivers/fs/fs_rec/blockdev.c	13 Nov 2003 02:26:25 -0000
@@ -44,7 +44,6 @@
 		 IN ULONG SectorSize,
 		 IN OUT PUCHAR Buffer)
 {
-  PIO_STACK_LOCATION Stack;
   IO_STATUS_BLOCK IoStatus;
   LARGE_INTEGER Offset;
   ULONG BlockSize;
Index: drivers/fs/fs_rec/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/fs_rec/makefile,v
retrieving revision 1.3
diff -u -w -r1.3 makefile
--- drivers/fs/fs_rec/makefile	16 Jan 2003 11:58:15 -0000	1.3
+++ drivers/fs/fs_rec/makefile	13 Nov 2003 02:26:25 -0000
@@ -18,7 +18,7 @@
 
 TARGET_CLEAN = $(DEP_FILES) *.o *.sys *.sym
 
-TARGET_CFLAGS = -g
+TARGET_CFLAGS = -g -Wall -Werror
 
 include $(PATH_TO_TOP)/rules.mak
 
Index: drivers/fs/ms/Makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/ms/Makefile,v
retrieving revision 1.7
diff -u -w -r1.7 Makefile
--- drivers/fs/ms/Makefile	21 Aug 2001 20:13:12 -0000	1.7
+++ drivers/fs/ms/Makefile	13 Nov 2003 02:26:25 -0000
@@ -6,6 +6,8 @@
 
 TARGET_NAME = msfs
 
+TARGET_CFLAGS = -Wall -Werror
+
 TARGET_OBJECTS = \
   create.o \
   finfo.o \
Index: drivers/fs/mup/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/mup/makefile,v
retrieving revision 1.1
diff -u -w -r1.1 makefile
--- drivers/fs/mup/makefile	25 Jun 2002 22:21:41 -0000	1.1
+++ drivers/fs/mup/makefile	13 Nov 2003 02:26:25 -0000
@@ -8,6 +8,8 @@
 
 TARGET_OBJECTS = $(TARGET_NAME).o create.o
 
+TARGET_CFLAGS = -Wall -Werror
+
 include $(PATH_TO_TOP)/rules.mak
 
 include $(TOOLS_PATH)/helper.mk
Index: drivers/fs/np/Makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/np/Makefile,v
retrieving revision 1.13
diff -u -w -r1.13 Makefile
--- drivers/fs/np/Makefile	21 Jun 2003 19:55:55 -0000	1.13
+++ drivers/fs/np/Makefile	13 Nov 2003 02:26:25 -0000
@@ -6,6 +6,8 @@
 
 TARGET_NAME = npfs
 
+TARGET_CFLAGS = -Wall -Werror
+
 TARGET_OBJECTS = \
   create.o \
   finfo.o \
Index: drivers/fs/np/fsctrl.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/np/fsctrl.c,v
retrieving revision 1.12
diff -u -w -r1.12 fsctrl.c
--- drivers/fs/np/fsctrl.c	20 Sep 2003 20:31:57 -0000	1.12
+++ drivers/fs/np/fsctrl.c	13 Nov 2003 02:26:28 -0000
@@ -116,7 +116,6 @@
 static NTSTATUS
 NpfsDisconnectPipe(PNPFS_FCB Fcb)
 {
-  PNPFS_FCB ServerFcb;
 
   DPRINT("NpfsDisconnectPipe()\n");
 
Index: drivers/fs/ntfs/attrib.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/ntfs/attrib.c,v
retrieving revision 1.7
diff -u -w -r1.7 attrib.c
--- drivers/fs/ntfs/attrib.c	12 Nov 2003 15:30:21 -0000	1.7
+++ drivers/fs/ntfs/attrib.c	13 Nov 2003 02:26:29 -0000
@@ -170,7 +170,6 @@
 NtfsDumpAttribute (PATTRIBUTE Attribute)
 {
   PNONRESIDENT_ATTRIBUTE NresAttr;
-  PRESIDENT_ATTRIBUTE ResAttr;
   UNICODE_STRING Name;
 
   ULONGLONG lcn;
Index: drivers/fs/ntfs/create.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/ntfs/create.c,v
retrieving revision 1.2
diff -u -w -r1.2 create.c
--- drivers/fs/ntfs/create.c	13 Feb 2003 22:24:16 -0000	1.2
+++ drivers/fs/ntfs/create.c	13 Nov 2003 02:26:30 -0000
@@ -161,8 +161,6 @@
   PIO_STACK_LOCATION Stack;
   PFILE_OBJECT FileObject;
   ULONG RequestedDisposition;
-  ULONG RequestedOptions;
-  PFCB Fcb;
 //  PWSTR FileName;
   NTSTATUS Status;
 
Index: drivers/fs/ntfs/dirctl.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/ntfs/dirctl.c,v
retrieving revision 1.6
diff -u -w -r1.6 dirctl.c
--- drivers/fs/ntfs/dirctl.c	7 Aug 2003 11:47:32 -0000	1.6
+++ drivers/fs/ntfs/dirctl.c	13 Nov 2003 02:26:34 -0000
@@ -492,7 +492,6 @@
   PFILE_NAMES_INFORMATION Buffer0 = NULL;
   PFCB Fcb;
   PCCB Ccb;
-  FCB TempFcb;
   BOOLEAN First = FALSE;
   PEXTENDED_IO_STACK_LOCATION Stack;
   PFILE_OBJECT FileObject;
Index: drivers/fs/ntfs/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/ntfs/makefile,v
retrieving revision 1.5
diff -u -w -r1.5 makefile
--- drivers/fs/ntfs/makefile	20 Sep 2003 20:31:57 -0000	1.5
+++ drivers/fs/ntfs/makefile	13 Nov 2003 02:26:34 -0000
@@ -8,7 +8,7 @@
 
 TARGET_NAME = ntfs
 
-TARGET_CFLAGS = -Wno-multichar
+TARGET_CFLAGS = -Wall -Wno-multichar -Werror
 
 TARGET_OBJECTS = $(TARGET_NAME).o attrib.o blockdev.o create.o dirctl.o \
                  fcb.o finfo.o fsctl.o mft.o volinfo.o close.o rw.o
Index: drivers/fs/ntfs/mft.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/ntfs/mft.c,v
retrieving revision 1.3
diff -u -w -r1.3 mft.c
--- drivers/fs/ntfs/mft.c	12 Nov 2003 15:30:21 -0000	1.3
+++ drivers/fs/ntfs/mft.c	13 Nov 2003 02:26:35 -0000
@@ -273,7 +273,7 @@
 	if (NresAttr == 0 || (vcn < NresAttr->StartVcn ||vcn > NresAttr->LastVcn))
 	{
 		
-	  PATTRIBUTE attrList = FindAttribute(file,AttributeAttributeList,0);
+	  FindAttribute(file,AttributeAttributeList,0);
 	  DbgPrint("Exeption \n");
 	  //KeDebugCheck(0);
 	}
Index: drivers/fs/ntfs/ntfs.h
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/ntfs/ntfs.h,v
retrieving revision 1.11
diff -u -w -r1.11 ntfs.h
--- drivers/fs/ntfs/ntfs.h	12 Nov 2003 15:30:21 -0000	1.11
+++ drivers/fs/ntfs/ntfs.h	13 Nov 2003 02:26:37 -0000
@@ -500,5 +500,11 @@
 NTSTATUS STDCALL
 NtfsSetVolumeInformation(PDEVICE_OBJECT DeviceObject,
 			 PIRP Irp);
+
+BOOLEAN
+FindRun (PNONRESIDENT_ATTRIBUTE NresAttr,
+	 ULONGLONG vcn,
+	 PULONGLONG lcn,
+	 PULONGLONG count);
 
 #endif /* NTFS_H */
Index: drivers/fs/ntfs/rw.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/fs/ntfs/rw.c,v
retrieving revision 1.1
diff -u -w -r1.1 rw.c
--- drivers/fs/ntfs/rw.c	17 Jul 2003 13:31:39 -0000	1.1
+++ drivers/fs/ntfs/rw.c	13 Nov 2003 02:26:38 -0000
@@ -163,7 +163,6 @@
 			Irp->Flags,
 			&ReturnedReadLength);
 
-ByeBye:
   if (NT_SUCCESS(Status))
     {
       if (FileObject->Flags & FO_SYNCHRONOUS_IO)
Index: drivers/input/keyboard/keyboard.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/input/keyboard/keyboard.c,v
retrieving revision 1.14
diff -u -w -r1.14 keyboard.c
--- drivers/input/keyboard/keyboard.c	1 Nov 2003 10:42:31 -0000	1.14
+++ drivers/input/keyboard/keyboard.c	13 Nov 2003 02:26:43 -0000
@@ -546,7 +546,6 @@
      {
 	KEY_EVENT_RECORD* rec = (KEY_EVENT_RECORD *)
 	  CurrentIrp->AssociatedIrp.SystemBuffer;
-	PIO_STACK_LOCATION stk = IoGetCurrentIrpStackLocation(CurrentIrp);
 	
 	CHECKPOINT;
 	
Index: drivers/input/keyboard/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/input/keyboard/makefile,v
retrieving revision 1.8
diff -u -w -r1.8 makefile
--- drivers/input/keyboard/makefile	5 Apr 2003 09:37:43 -0000	1.8
+++ drivers/input/keyboard/makefile	13 Nov 2003 02:26:43 -0000
@@ -8,6 +8,8 @@
 
 TARGET_NAME = keyboard
 
+TARGET_CFLAGS = -Wall -Werror
+
 TARGET_OBJECTS = $(TARGET_NAME).o
 
 include $(PATH_TO_TOP)/rules.mak
Index: drivers/input/mouclass/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/input/mouclass/makefile,v
retrieving revision 1.7
diff -u -w -r1.7 makefile
--- drivers/input/mouclass/makefile	21 Aug 2001 20:13:14 -0000	1.7
+++ drivers/input/mouclass/makefile	13 Nov 2003 02:26:43 -0000
@@ -6,6 +6,8 @@
 
 TARGET_NAME = mouclass
 
+TARGET_CFLAGS = -Wall -Werror
+
 TARGET_OBJECTS = $(TARGET_NAME).o
 
 include $(PATH_TO_TOP)/rules.mak
Index: drivers/input/mouclass/mouclass.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/input/mouclass/mouclass.c,v
retrieving revision 1.20
diff -u -w -r1.20 mouclass.c
--- drivers/input/mouclass/mouclass.c	1 Nov 2003 10:42:32 -0000	1.20
+++ drivers/input/mouclass/mouclass.c	13 Nov 2003 02:26:46 -0000
@@ -58,9 +58,7 @@
 			PMOUSE_INPUT_DATA MouseDataEnd, PULONG InputCount)
 {
    PDEVICE_EXTENSION ClassDeviceExtension = ClassDeviceObject->DeviceExtension;
-   PIRP Irp;
    ULONG ReadSize;
-   PIO_STACK_LOCATION Stack;
    KIRQL OldIrql;
 
    // In classical NT, you would take the input data and pipe it through the IO system, for the GDI to read.
Index: drivers/input/psaux/controller.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/input/psaux/controller.c,v
retrieving revision 1.3
diff -u -w -r1.3 controller.c
--- drivers/input/psaux/controller.c	24 Jul 2001 18:38:40 -0000	1.3
+++ drivers/input/psaux/controller.c	13 Nov 2003 02:26:46 -0000
@@ -10,6 +10,7 @@
 /* This reads the controller status port, and does the appropriate
    action. It requires that we hold the keyboard controller spinlock. */
 
+int controller_read_data(void);
 unsigned handle_event(void)
 {
   unsigned status = controller_read_status();
Index: drivers/input/psaux/controller.h
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/input/psaux/controller.h,v
retrieving revision 1.1
diff -u -w -r1.1 controller.h
--- drivers/input/psaux/controller.h	18 Oct 2000 09:09:15 -0000	1.1
+++ drivers/input/psaux/controller.h	13 Nov 2003 02:26:47 -0000
@@ -137,3 +137,4 @@
 #define controller_read_status() READ_PORT_UCHAR ((PUCHAR)CONTROLLER_REGISTER_STATUS)
 #define controller_write_output(value) WRITE_PORT_UCHAR ((PUCHAR)CONTROLLER_REGISTER_DATA, value)
 #define controller_write_command(value) WRITE_PORT_UCHAR ((PUCHAR)CONTROLLER_REGISTER_CONTROL, value)
+void controller_write_command_word(unsigned data);
Index: drivers/input/psaux/logips2pp.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/input/psaux/logips2pp.c,v
retrieving revision 1.2
diff -u -w -r1.2 logips2pp.c
--- drivers/input/psaux/logips2pp.c	29 Sep 2003 19:41:46 -0000	1.2
+++ drivers/input/psaux/logips2pp.c	13 Nov 2003 02:26:49 -0000
@@ -18,6 +18,7 @@
  * Process a PS2++ or PS2T++ packet.
  */
 
+int SendCommand(PDEVICE_EXTENSION DeviceExtension, unsigned char *param, int command);
 void PS2PPProcessPacket(PDEVICE_EXTENSION DeviceExtension, PMOUSE_INPUT_DATA Input, int *wheel)
 {
     unsigned char *packet = DeviceExtension->MouseBuffer;
@@ -154,7 +155,6 @@
 {
 	int i;
 	//char *vendor, *name;
-	static int logitech_4btn[] = { 12, 40, 41, 42, 43, 52, 73, 80, -1 };
 	static int logitech_wheel[] = { 52, 53, 75, 76, 80, 81, 83, 88, 112, -1 };
 	static int logitech_ps2pp[] = { 12, 13, 40, 41, 42, 43, 50, 51, 52, 53, 73, 75,
 						76, 80, 81, 83, 88, 96, 97, 112, -1 };
Index: drivers/input/psaux/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/input/psaux/makefile,v
retrieving revision 1.8
diff -u -w -r1.8 makefile
--- drivers/input/psaux/makefile	28 Sep 2003 00:30:34 -0000	1.8
+++ drivers/input/psaux/makefile	13 Nov 2003 02:26:49 -0000
@@ -6,6 +6,8 @@
 
 TARGET_NAME = psaux
 
+TARGET_CFLAGS = -Wall -Werror
+
 TARGET_OBJECTS = $(TARGET_NAME).o controller.o mouse.o logips2pp.o synaptics.o
 
 include $(PATH_TO_TOP)/rules.mak
Index: drivers/input/psaux/mouse.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/input/psaux/mouse.c,v
retrieving revision 1.18
diff -u -w -r1.18 mouse.c
--- drivers/input/psaux/mouse.c	18 Oct 2003 19:18:41 -0000	1.18
+++ drivers/input/psaux/mouse.c	13 Nov 2003 02:26:53 -0000
@@ -13,6 +13,11 @@
 #include <debug.h>
 
 
+int InitSynaptics(PDEVICE_EXTENSION DeviceExtension);
+void PS2PPProcessPacket(PDEVICE_EXTENSION DeviceExtension, PMOUSE_INPUT_DATA Input, int *wheel);
+void PS2PPSet800dpi(PDEVICE_EXTENSION DeviceExtension);
+int PS2PPDetectModel(PDEVICE_EXTENSION DeviceExtension, unsigned char *param);
+
 // Parse incoming packets
 BOOLEAN FASTCALL
 ParsePackets(PDEVICE_EXTENSION DeviceExtension, PMOUSE_INPUT_DATA Input)
@@ -128,7 +133,6 @@
   PMOUSE_INPUT_DATA Input;
   ULONG Queue;
   BOOLEAN ret;
-  int state_dx, state_dy;
   unsigned scancode;
   unsigned status = controller_read_status();
   scancode = controller_read_input();
@@ -177,6 +181,7 @@
     
     return ret;
   }
+  return TRUE;
 }
 
 
@@ -567,8 +572,6 @@
   ULONG MappedIrq;
   KIRQL Dirql;
   KAFFINITY Affinity;
-  unsigned scancode;
-  unsigned char status;
   LARGE_INTEGER Millisecond_Timeout;
   
   Millisecond_Timeout.QuadPart = 1;
Index: drivers/input/psaux/mouse.h
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/input/psaux/mouse.h,v
retrieving revision 1.6
diff -u -w -r1.6 mouse.h
--- drivers/input/psaux/mouse.h	29 Sep 2003 19:41:46 -0000	1.6
+++ drivers/input/psaux/mouse.h	13 Nov 2003 02:26:53 -0000
@@ -54,13 +54,6 @@
 #define MOUSE_ISINTELLIMOUSE    0x03
 #define MOUSE_ISINTELLIMOUSE5BUTTONS    0x04
 
-static PIRP  CurrentIrp;
-static ULONG MouseDataRead;
-static ULONG MouseDataRequired;
-static BOOLEAN AlreadyOpened = FALSE;
-static KDPC MouseDpc;
-
-static VOID MouseDpcRoutine(PKDPC Dpc,
-			  PVOID DeferredContext,
-			  PVOID SystemArgument1,
-			  PVOID SystemArgument2);
+BOOLEAN DetectPS2Port(void);
+BOOLEAN SetupMouse(PDEVICE_OBJECT DeviceObject, PUNICODE_STRING RegistryPath);
+void controller_wait(void);
Index: drivers/input/psaux/psaux.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/input/psaux/psaux.c,v
retrieving revision 1.16
diff -u -w -r1.16 psaux.c
--- drivers/input/psaux/psaux.c	1 Nov 2003 10:42:32 -0000	1.16
+++ drivers/input/psaux/psaux.c	13 Nov 2003 02:26:55 -0000
@@ -13,14 +13,17 @@
 #include "mouse.h"
 #include "psaux.h"
 
+static PIRP  CurrentIrp;
+static ULONG MouseDataRead;
+static ULONG MouseDataRequired;
+static BOOLEAN AlreadyOpened = FALSE;
+
 BOOLEAN STDCALL
 MouseSynchronizeRoutine(PVOID Context)
 {
    PIRP Irp = (PIRP)Context;
-   PMOUSE_INPUT_DATA rec  = (PMOUSE_INPUT_DATA)Irp->AssociatedIrp.SystemBuffer;
    PIO_STACK_LOCATION stk = IoGetCurrentIrpStackLocation(Irp);
    ULONG NrToRead         = stk->Parameters.Read.Length/sizeof(MOUSE_INPUT_DATA);
-   int i;
 
    if ((stk->Parameters.Read.Length/sizeof(MOUSE_INPUT_DATA))==NrToRead)
    {
@@ -237,9 +240,6 @@
 DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
 {
    PDEVICE_OBJECT DeviceObject;
-   UNICODE_STRING DeviceName;
-   UNICODE_STRING SymlinkName;
-   PDEVICE_EXTENSION DeviceExtension;
 
    if (DetectPS2Port() == TRUE) {
      DbgPrint("PS2 Port Driver version 0.0.2\n");
Index: drivers/input/sermouse/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/input/sermouse/makefile,v
retrieving revision 1.8
diff -u -w -r1.8 makefile
--- drivers/input/sermouse/makefile	16 Jun 2002 04:47:56 -0000	1.8
+++ drivers/input/sermouse/makefile	13 Nov 2003 02:26:55 -0000
@@ -9,6 +9,8 @@
 TARGET_OBJECTS = \
   sermouse.o
 
+TARGET_CFLAGS = -Wall -Werror
+
 #mouse.o - Old Serial mouse driver
 
 include $(PATH_TO_TOP)/rules.mak
Index: drivers/lib/bzip2/Makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/lib/bzip2/Makefile,v
retrieving revision 1.4
diff -u -w -r1.4 Makefile
--- drivers/lib/bzip2/Makefile	1 Jan 2003 11:11:48 -0000	1.4
+++ drivers/lib/bzip2/Makefile	13 Nov 2003 02:26:56 -0000
@@ -10,7 +10,7 @@
 
 TARGET_CFLAGS = \
  -Wall -Winline -Os -fomit-frame-pointer -fno-strength-reduce \
- -DBZ_NO_STDIO -DBZ_DECOMPRESS_ONLY $(BIGFILES) -g
+ -DBZ_NO_STDIO -DBZ_DECOMPRESS_ONLY $(BIGFILES) -g -Werror
 
 TARGET_OBJECTS = \
 	bzlib.o \
Index: drivers/net/afd/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/afd/makefile,v
retrieving revision 1.5
diff -u -w -r1.5 makefile
--- drivers/net/afd/makefile	21 Aug 2001 20:13:15 -0000	1.5
+++ drivers/net/afd/makefile	13 Nov 2003 02:26:57 -0000
@@ -6,7 +6,7 @@
 
 TARGET_NAME = afd
 
-TARGET_CFLAGS = -I./include -DDBG
+TARGET_CFLAGS = -I./include -DDBG -Werror -Wall
 
 TARGET_OBJECTS = \
   afd/afd.o \
Index: drivers/net/afd/afd/dispatch.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/afd/afd/dispatch.c,v
retrieving revision 1.5
diff -u -w -r1.5 dispatch.c
--- drivers/net/afd/afd/dispatch.c	4 Jul 2001 20:40:22 -0000	1.5
+++ drivers/net/afd/afd/dispatch.c	13 Nov 2003 02:27:03 -0000
@@ -95,7 +95,6 @@
   PFILE_REQUEST_BIND Request;
   PFILE_REPLY_BIND Reply;
   PAFDFCB FCB;
-  INT Errno;
 
   InputBufferLength  = IrpSp->Parameters.DeviceIoControl.InputBufferLength;
   OutputBufferLength = IrpSp->Parameters.DeviceIoControl.OutputBufferLength;
@@ -371,7 +370,6 @@
   UINT OutputBufferLength;
   PFILE_REQUEST_RECVFROM Request;
   PFILE_REPLY_RECVFROM Reply;
-  DWORD NumberOfBytesRecvd;
   PAFDFCB FCB;
 
   AFD_DbgPrint(MAX_TRACE, ("Called.\n"));
Index: drivers/net/afd/afd/event.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/afd/afd/event.c,v
retrieving revision 1.4
diff -u -w -r1.4 event.c
--- drivers/net/afd/afd/event.c	4 Jul 2001 20:40:22 -0000	1.4
+++ drivers/net/afd/afd/event.c	13 Nov 2003 02:27:04 -0000
@@ -96,7 +96,6 @@
 {
   PAFDFCB FCB = (PAFDFCB)TdiEventContext;
   PAFD_READ_REQUEST ReadRequest;
-  PIO_STACK_LOCATION IrpSp;
   PVOID ReceiveBuffer;
   PAFD_BUFFER Buffer;
   PLIST_ENTRY Entry;
Index: drivers/net/afd/afd/opnclose.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/afd/afd/opnclose.c,v
retrieving revision 1.6
diff -u -w -r1.6 opnclose.c
--- drivers/net/afd/afd/opnclose.c	22 May 2003 00:47:03 -0000	1.6
+++ drivers/net/afd/afd/opnclose.c	13 Nov 2003 02:27:06 -0000
@@ -89,7 +89,6 @@
     PAFD_SOCKET_INFORMATION SocketInfo;
     PFILE_FULL_EA_INFORMATION EaInfo;
     PDEVICE_EXTENSION DeviceExt;
-    PTA_ADDRESS Address;
     NTSTATUS Status;
     ULONG EaLength;
     PAFDFCB FCB;
Index: drivers/net/afd/afd/rdwr.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/afd/afd/rdwr.c,v
retrieving revision 1.3
diff -u -w -r1.3 rdwr.c
--- drivers/net/afd/afd/rdwr.c	4 Jun 2001 11:26:12 -0000	1.3
+++ drivers/net/afd/afd/rdwr.c	13 Nov 2003 02:27:07 -0000
@@ -66,7 +66,6 @@
     PDEVICE_OBJECT DeviceObject,
     PIRP Irp)
 {
-    PDEVICE_EXTENSION DeviceExt = DeviceObject->DeviceExtension;
     PIO_STACK_LOCATION IoSp = IoGetCurrentIrpStackLocation(Irp);
     PFILE_OBJECT FileObject = IoSp->FileObject;
     NTSTATUS Status;
Index: drivers/net/afd/afd/routines.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/afd/afd/routines.c,v
retrieving revision 1.3
diff -u -w -r1.3 routines.c
--- drivers/net/afd/afd/routines.c	15 Jun 2001 17:47:18 -0000	1.3
+++ drivers/net/afd/afd/routines.c	13 Nov 2003 02:27:08 -0000
@@ -38,7 +38,6 @@
   ULONG MaxLength,
   PULONG BytesCopied)
 {
-  NTSTATUS Status;
   ULONG Length;
   LPWSABUF p;
   ULONG i;
@@ -84,13 +83,11 @@
     DWORD BufferCount,
     PULONG BytesCopied)
 {
-  NTSTATUS Status;
   PUCHAR DstData, SrcData;
   UINT DstSize, SrcSize;
   UINT Count, Total;
   PAFD_BUFFER SrcBuffer;
   PLIST_ENTRY Entry;
-  ULONG Size;
 
   *BytesCopied = 0;
   if (BufferCount == 0)
Index: drivers/net/afd/afd/tdi.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/afd/afd/tdi.c,v
retrieving revision 1.4
diff -u -w -r1.4 tdi.c
--- drivers/net/afd/afd/tdi.c	4 Jul 2001 20:40:22 -0000	1.4
+++ drivers/net/afd/afd/tdi.c	13 Nov 2003 02:27:16 -0000
@@ -1088,7 +1088,6 @@
 {
     PTDI_CONNECTION_INFORMATION ReceiveInfo;
     PTDI_CONNECTION_INFORMATION ReturnInfo;
-    PTA_ADDRESS_IP ReturnAddress;
     PDEVICE_OBJECT DeviceObject;
     IO_STATUS_BLOCK Iosb;
     DWORD TdiAddressSize;
Index: drivers/net/dd/ne2000/Makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/dd/ne2000/Makefile,v
retrieving revision 1.11
diff -u -w -r1.11 Makefile
--- drivers/net/dd/ne2000/Makefile	21 Aug 2001 20:13:15 -0000	1.11
+++ drivers/net/dd/ne2000/Makefile	13 Nov 2003 02:27:16 -0000
@@ -6,7 +6,7 @@
 
 TARGET_NAME = ne2000
 
-TARGET_CFLAGS = -I./include
+TARGET_CFLAGS = -I./include -Werror -Wall
 
 TARGET_OBJECTS = \
   ne2000/8390.o \
Index: drivers/net/ndis/Makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/ndis/Makefile,v
retrieving revision 1.18
diff -u -w -r1.18 Makefile
--- drivers/net/ndis/Makefile	4 Sep 2003 06:55:21 -0000	1.18
+++ drivers/net/ndis/Makefile	13 Nov 2003 02:27:16 -0000
@@ -6,7 +6,7 @@
 
 TARGET_NAME = ndis
 
-TARGET_CFLAGS = -I./include -DNDIS_WRAPPER -DDBG=1 -Wall
+TARGET_CFLAGS = -I./include -DNDIS_WRAPPER -DDBG=1 -Wall -Werror
 
 TARGET_OBJECTS = \
   ndis/main.o \
Index: drivers/net/npf/Makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/npf/Makefile,v
retrieving revision 1.1
diff -u -w -r1.1 Makefile
--- drivers/net/npf/Makefile	8 Jan 2003 19:55:01 -0000	1.1
+++ drivers/net/npf/Makefile	13 Nov 2003 02:27:17 -0000
@@ -9,7 +9,7 @@
 
 #TARGET_CFLAGS = -DDBG -DWIN_NT_DRIVER -DKQPC_TS -I$(PATH_TO_TOP)/ntoskrnl/include
 
-TARGET_CFLAGS = -DDBG -DWIN_NT_DRIVER -DKQPC_TS -DUSE_KLOCKS -I$(PATH_TO_TOP)/ntoskrnl/include
+TARGET_CFLAGS = -DDBG -DWIN_NT_DRIVER -DKQPC_TS -DUSE_KLOCKS -I$(PATH_TO_TOP)/ntoskrnl/include -Wall -Werror
 
 TARGET_DDKLIBS = ndis.a
 
Index: drivers/net/npf/dump.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/npf/dump.c,v
retrieving revision 1.3
diff -u -w -r1.3 dump.c
--- drivers/net/npf/dump.c	24 Jul 2003 18:14:59 -0000	1.3
+++ drivers/net/npf/dump.c	13 Nov 2003 02:27:20 -0000
@@ -37,6 +37,7 @@
 #include "packet.h"
 #include "win_bpf.h"
 
+#define assert(exp)     ((void)0)
 //-------------------------------------------------------------------
 
 NTSTATUS
@@ -51,8 +52,6 @@
     ULONG FullFileNameLength;
     PDEVICE_OBJECT fsdDevice;
 
-    FILE_STANDARD_INFORMATION StandardInfo;
-    
     IF_LOUD(DbgPrint("NPF: OpenDumpFile.\n");)
 
     if(fileName->Buffer[0] == L'\\' &&
@@ -158,9 +157,6 @@
     NTSTATUS ntStatus;
     struct packet_file_header hdr;
     IO_STATUS_BLOCK IoStatus;
-    NDIS_REQUEST pRequest;
-    ULONG MediaType;
-    OBJECT_ATTRIBUTES ObjectAttributes;
 
     IF_LOUD(DbgPrint("NPF: StartDump.\n");)
 
@@ -273,7 +269,6 @@
 
 VOID NPF_DumpThread(POPEN_INSTANCE Open)
 {
-    ULONG       FrozenNic;
 
     IF_LOUD(DbgPrint("NPF: In the work routine.  Parameter = 0x%0x\n",Open);)
 
@@ -315,7 +310,6 @@
     UINT        Ttail;
     UINT        TLastByte;
     PUCHAR      CurrBuff;
-    NTSTATUS    ntStatus;
     IO_STATUS_BLOCK IoStatus;
     PMDL        lMdl;
     UINT        SizeToDump;
@@ -467,12 +461,6 @@
 //-------------------------------------------------------------------
 
 NTSTATUS NPF_CloseDumpFile(POPEN_INSTANCE Open){
-    NTSTATUS    ntStatus;
-    IO_STATUS_BLOCK IoStatus;
-    PMDL        WriteMdl;
-    PUCHAR      VMBuff;
-    UINT        VMBufLen;
-
 
     IF_LOUD(DbgPrint("NPF: NPF_CloseDumpFile.\n");)
     IF_LOUD(DbgPrint("Dumpoffset=%d\n",Open->DumpOffset.QuadPart);)
@@ -542,7 +530,6 @@
     KEVENT event;
     PIO_STACK_LOCATION ioStackLocation;
     PDEVICE_OBJECT fsdDevice = IoGetRelatedDeviceObject(FileObject);
-    NTSTATUS Status;
  
     // Set up the event we'll use
     KeInitializeEvent(&event, SynchronizationEvent, FALSE);
Index: drivers/net/npf/jitter.h
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/npf/jitter.h,v
retrieving revision 1.1
diff -u -w -r1.1 jitter.h
--- drivers/net/npf/jitter.h	8 Jan 2003 19:55:01 -0000	1.1
+++ drivers/net/npf/jitter.h	13 Nov 2003 02:27:22 -0000
@@ -95,16 +95,16 @@
 
 /// mov r32,i32
 #define MOVid(r32, i32) \
-  emitm(&stream, 11 << 4 | 1 << 3 | r32 & 0x7, 1); emitm(&stream, i32, 4);
+  emitm(&stream, (11 << 4) | (1 << 3) | (r32 & 0x7), 1); emitm(&stream, i32, 4);
 
 /// mov dr32,sr32
 #define MOVrd(dr32, sr32) \
-  emitm(&stream, 8 << 4 | 3 | 1 << 3, 1); emitm(&stream,  3 << 6 | (dr32 & 0x7) << 3 | sr32 & 0x7, 1);
+  emitm(&stream, (8 << 4) | 3 | (1 << 3), 1); emitm(&stream,  (3 << 6) | ((dr32 & 0x7) << 3) | (sr32 & 0x7), 1);
 
 /// mov dr32,sr32[off]
 #define MOVodd(dr32, sr32, off) \
-  emitm(&stream, 8 << 4 | 3 | 1 << 3, 1); \
-  emitm(&stream,  1 << 6 | (dr32 & 0x7) << 3 | sr32 & 0x7, 1);\
+  emitm(&stream, (8 << 4) | 3 | (1 << 3), 1); \
+  emitm(&stream,  (1 << 6) | ((dr32 & 0x7) << 3) | (sr32 & 0x7), 1);\
   emitm(&stream,  off, 1);
 
 /// mov dr32,sr32[or32]
@@ -144,15 +144,15 @@
 
 /// push r32
 #define PUSH(r32) \
-  emitm(&stream, 5 << 4 | 0 << 3 | r32 & 0x7, 1);
+  emitm(&stream, (5 << 4) | (0 << 3) | (r32 & 0x7), 1);
 
 /// pop r32
 #define POP(r32) \
-  emitm(&stream, 5 << 4 | 1 << 3 | r32 & 0x7, 1);
+  emitm(&stream, (5 << 4) | (1 << 3) | (r32 & 0x7), 1);
 
 /// ret
 #define RET() \
-  emitm(&stream, 12 << 4 | 0 << 3 | 3, 1);
+  emitm(&stream, (12 << 4) | (0 << 3) | 3, 1);
 
 /// add dr32,sr32
 #define ADDrd(dr32, sr32) \
@@ -215,12 +215,12 @@
 /// and dr32,sr32
 #define ANDrd(dr32, sr32) \
   emitm(&stream, 0x23, 1);\
-  emitm(&stream,  3 << 6 | (dr32 & 0x7) << 3 | sr32 & 0x7, 1);
+  emitm(&stream,  (3 << 6) | ((dr32 & 0x7) << 3) | (sr32 & 0x7), 1);
 
 /// or dr32,sr32
 #define ORrd(dr32, sr32) \
   emitm(&stream, 0x0b, 1);\
-  emitm(&stream,  3 << 6 | (dr32 & 0x7) << 3 | sr32 & 0x7, 1);
+  emitm(&stream,  (3 << 6) | ((dr32 & 0x7) << 3) | (sr32 & 0x7), 1);
 
 /// or r32,i32
 #define ORid(r32, i32) \
@@ -235,40 +235,40 @@
 /// shl r32,i8
 #define SHLib(r32, i8) \
   emitm(&stream, 0xc1, 1);\
-  emitm(&stream, 7 << 5 | r32 & 0x7, 1);\
+  emitm(&stream, (7 << 5) | (r32 & 0x7), 1);\
   emitm(&stream, i8, 1);
 
 /// shl dr32,cl
 #define SHL_CLrb(dr32) \
   emitm(&stream, 0xd3, 1);\
-  emitm(&stream,  7 << 5 | dr32 & 0x7, 1);
+  emitm(&stream,  (7 << 5) | (dr32 & 0x7), 1);
 
 /// shr r32,i8
 #define SHRib(r32, i8) \
   emitm(&stream, 0xc1, 1);\
-  emitm(&stream, 29 << 3 | r32 & 0x7, 1);\
+  emitm(&stream, (29 << 3) | (r32 & 0x7), 1);\
   emitm(&stream, i8, 1);
 
 /// shr dr32,cl
 #define SHR_CLrb(dr32) \
   emitm(&stream, 0xd3, 1);\
-  emitm(&stream,  29 << 3 | dr32 & 0x7, 1);
+  emitm(&stream,  (29 << 3) | (dr32 & 0x7), 1);
 
 /// neg r32
 #define NEGd(r32) \
   emitm(&stream, 0xf7, 1);\
-  emitm(&stream,  27 << 3 | r32 & 0x7, 1);
+  emitm(&stream,  (27 << 3) | (r32 & 0x7), 1);
 
 /// cmp dr32,sr32[off]
 #define CMPodd(dr32, sr32, off) \
-  emitm(&stream, 3 << 4 | 3 | 1 << 3, 1); \
-  emitm(&stream,  1 << 6 | (dr32 & 0x7) << 3 | sr32 & 0x7, 1);\
+  emitm(&stream, (3 << 4) | 3 | (1 << 3), 1); \
+  emitm(&stream,  (1 << 6) | ((dr32 & 0x7) << 3) | (sr32 & 0x7), 1);\
   emitm(&stream,  off, 1);
 
 /// cmp dr32,sr32
 #define CMPrd(dr32, sr32) \
   emitm(&stream, 0x3b, 1); \
-  emitm(&stream,  3 << 6 | (dr32 & 0x7) << 3 | sr32 & 0x7, 1);
+  emitm(&stream,  (3 << 6) | ((dr32 & 0x7) << 3) | (sr32 & 0x7), 1);
 
 /// cmp dr32,i32
 #define CMPid(dr32, i32) \
Index: drivers/net/npf/openclos.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/npf/openclos.c,v
retrieving revision 1.2
diff -u -w -r1.2 openclos.c
--- drivers/net/npf/openclos.c	17 Jan 2003 13:03:16 -0000	1.2
+++ drivers/net/npf/openclos.c	13 Nov 2003 02:27:26 -0000
@@ -80,8 +80,6 @@
     NDIS_STATUS     Status;
     NDIS_STATUS     ErrorStatus;
     UINT            i;
-	PUCHAR			tpointer;
-    PLIST_ENTRY     PacketListEntry;
 	PCHAR			EvName;
 
     IF_LOUD(DbgPrint("NPF: OpenAdapter\n");)
Index: drivers/net/npf/packet.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/npf/packet.c,v
retrieving revision 1.3
diff -u -w -r1.3 packet.c
--- drivers/net/npf/packet.c	24 Jul 2003 18:14:59 -0000	1.3
+++ drivers/net/npf/packet.c	13 Nov 2003 02:27:34 -0000
@@ -92,18 +92,8 @@
 {
 
     NDIS_PROTOCOL_CHARACTERISTICS  ProtocolChar;
-    UNICODE_STRING MacDriverName;
-    UNICODE_STRING UnicodeDeviceName;
-    PDEVICE_OBJECT DeviceObject = NULL;
-    PDEVICE_EXTENSION DeviceExtension = NULL;
     NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
-    NTSTATUS ErrorCode = STATUS_SUCCESS;
     NDIS_STRING ProtoName = NDIS_STRING_CONST("PacketDriver");
-    ULONG          DevicesCreated=0;
-    PWSTR          BindString;
-    PWSTR          ExportString;
-    PWSTR          BindStringSave;
-    PWSTR          ExportStringSave;
     NDIS_HANDLE    NdisProtocolHandle;
 	WCHAR* bindT;
 	PKEY_VALUE_PARTIAL_INFORMATION tcpBindingsP;
@@ -297,7 +287,6 @@
 
 PWCHAR getAdaptersList(void)
 {
-	PKEY_VALUE_PARTIAL_INFORMATION result = NULL;
 	OBJECT_ATTRIBUTES objAttrs;
 	NTSTATUS status;
 	HANDLE keyHandle;
@@ -321,7 +310,6 @@
 
     } else { //OK
 		ULONG resultLength;
-		KEY_VALUE_PARTIAL_INFORMATION valueInfo;
 		CHAR AdapInfo[1024];
 		UINT i=0;
 		
@@ -657,14 +645,10 @@
     PINTERNAL_REQUEST   pRequest;
     ULONG               FunctionCode;
     NDIS_STATUS	        Status;
-    PLIST_ENTRY         PacketListEntry;
-	UINT				i;
 	PUCHAR				tpointer;
 	ULONG				dim,timeout;
 	PUCHAR				prog;
 	PPACKET_OID_DATA    OidData;
-	int					*StatsBuf;
-    PNDIS_PACKET        pPacket;
 	ULONG				mode;
 	PWSTR				DumpNameBuff;
 	PUCHAR				TmpBPFProgram;
@@ -1130,7 +1114,6 @@
     PIRP                Irp;
     PINTERNAL_REQUEST   pRequest;
     UINT                FunctionCode;
-	KIRQL				OldIrq;
 
     PPACKET_OID_DATA    OidData;
 
@@ -1249,7 +1232,6 @@
 
     PWSTR      Bind       = L"Bind";
     PWSTR      Export     = L"Export";
-    PWSTR      Parameters = L"Parameters";
     PWSTR      Linkage    = L"Linkage";
 
     PWCHAR     Path;
Index: drivers/net/npf/read.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/npf/read.c,v
retrieving revision 1.2
diff -u -w -r1.2 read.c
--- drivers/net/npf/read.c	17 Jan 2003 13:03:16 -0000	1.2
+++ drivers/net/npf/read.c	13 Nov 2003 02:27:38 -0000
@@ -107,10 +107,7 @@
 	UINT				Ttail;
 	UINT				TLastByte;
 	PUCHAR				CurrBuff;
-	LARGE_INTEGER		CapTime;
-	LARGE_INTEGER		TimeFreq;
 	struct bpf_hdr		*header;
-	KIRQL				Irql;
 	PUCHAR				UserPointer;
 	ULONG				bytecopy;
 	UINT				SizeToCopy;
@@ -339,8 +336,6 @@
     UINT                BytesTransfered;
     ULONG               BufferLength;
     PMDL                pMdl;
-	LARGE_INTEGER		CapTime;
-	LARGE_INTEGER		TimeFreq;
 	struct bpf_hdr		*header;
 	PUCHAR				CurrBuff;
 	UINT				Thead;
Index: drivers/net/npf/tcp_session.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/npf/tcp_session.c,v
retrieving revision 1.2
diff -u -w -r1.2 tcp_session.c
--- drivers/net/npf/tcp_session.c	24 Jul 2003 18:14:59 -0000	1.2
+++ drivers/net/npf/tcp_session.c	13 Nov 2003 02:27:39 -0000
@@ -173,6 +173,7 @@
 			break;
 		}
 		if (flags&ACK)
+		{
 			if (direction==session->direction)
 			{
 				uint32 new_ack=SW_ULONG_AT(mem_ex->buffer,20);
@@ -185,12 +186,14 @@
 				if (new_ack-session->ack_cln<MAX_WINDOW)
 					session->ack_cln=new_ack;
 			}
+		}
 		if (flags&RST)
 		{
 			next_status=CLOSED_RST;
 			break;
 		}
 		if (flags&FIN)
+		{
 			if (direction==session->direction)
 			{   /* an hack to make all things work */
 				session->ack_cln=SW_ULONG_AT(mem_ex->buffer,16);
@@ -203,6 +206,7 @@
 				next_status=FIN_SRV_RCV;
 				break;
 			}
+		}
 		next_status=ESTABLISHED;
 		break;
 	
Index: drivers/net/npf/time_calls.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/npf/time_calls.c,v
retrieving revision 1.1
diff -u -w -r1.1 time_calls.c
--- drivers/net/npf/time_calls.c	8 Jan 2003 19:55:01 -0000	1.1
+++ drivers/net/npf/time_calls.c	13 Nov 2003 02:27:40 -0000
@@ -39,8 +39,6 @@
 {
 	struct timeval tmp;
 	LARGE_INTEGER SystemTime;
-	LARGE_INTEGER i;
-	ULONG tmp2;
 	LARGE_INTEGER TimeFreq,PTime;
 
 	if (data->reference!=0)
@@ -73,7 +71,6 @@
 void GET_TIME(struct timeval *dst, struct time_conv *data)
 {
 	LARGE_INTEGER PTime, TimeFreq;
-	LONG tmp;
 
 	PTime=KeQueryPerformanceCounter(&TimeFreq);
 #ifndef __GNUC__
@@ -96,7 +93,6 @@
 /* callers must be at IRQL=PASSIVE_LEVEL */
 VOID TIME_SYNCHRONIZE(struct time_conv *data)
 {
-	struct timeval tmp;
 	LARGE_INTEGER system_time;
 	ULONGLONG curr_ticks;
 	KIRQL old;
Index: drivers/net/npf/write.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/npf/write.c,v
retrieving revision 1.2
diff -u -w -r1.2 write.c
--- drivers/net/npf/write.c	17 Jan 2003 13:03:16 -0000	1.2
+++ drivers/net/npf/write.c	13 Nov 2003 02:27:42 -0000
@@ -148,14 +148,12 @@
     POPEN_INSTANCE		Open;
     PIO_STACK_LOCATION	IrpSp;
     PNDIS_PACKET		pPacket;
-	UINT				i;
     NDIS_STATUS		    Status;
-	LARGE_INTEGER		StartTicks, CurTicks, TargetTicks;
+	LARGE_INTEGER		StartTicks, CurTicks;
 	LARGE_INTEGER		TimeFreq;
 	struct timeval		BufStartTime;
 	struct sf_pkthdr	*winpcap_hdr;
 	PMDL				TmpMdl;
-	PCHAR				CurPos;
 	PCHAR				EndOfUserBuff = UserBuff + UserBuffSize;
 	
     IF_LOUD(DbgPrint("NPF: BufferedWrite, UserBuff=%x, Size=%u\n", UserBuff, UserBuffSize);)
Index: drivers/net/tdi/Makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/tdi/Makefile,v
retrieving revision 1.13
diff -u -w -r1.13 Makefile
--- drivers/net/tdi/Makefile	21 Aug 2001 20:13:16 -0000	1.13
+++ drivers/net/tdi/Makefile	13 Nov 2003 02:27:43 -0000
@@ -4,6 +4,8 @@
 
 TARGET_TYPE = export_driver
 
+TARGET_CFLAGS = -Werror -Wall
+
 TARGET_NAME = tdi
 
 TARGET_OBJECTS = \
Index: drivers/net/tdi/tdi/dereg.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/tdi/tdi/dereg.c,v
retrieving revision 1.5
diff -u -w -r1.5 dereg.c
--- drivers/net/tdi/tdi/dereg.c	10 Jul 2003 19:54:13 -0000	1.5
+++ drivers/net/tdi/tdi/dereg.c	13 Nov 2003 02:27:44 -0000
@@ -46,8 +46,8 @@
 	DWORD	Unknown2
 	)
 {
-	NTSTATUS	Status = STATUS_SUCCESS;
 #if 0	
+	NTSTATUS	Status = STATUS_SUCCESS;
 	Status = TdiDeRegister (
 			R_ADDRESS_CHANGE_HANDLER,
 			AddressChangeHandler
@@ -85,8 +85,8 @@
 	DWORD	Unknown1
 	)
 {
-	NTSTATUS	Status = STATUS_SUCCESS;
 #if 0	
+	NTSTATUS	Status = STATUS_SUCCESS;
 	Status = TdiDeRegister (
 			R_DEVICE_OBJECT,
 			DeviceObject
@@ -124,8 +124,8 @@
 	DWORD	Unknown1
 	)
 {
-	NTSTATUS	Status = STATUS_SUCCESS;
 #if 0	
+	NTSTATUS	Status = STATUS_SUCCESS;
 	Status = TdiDeRegister (
 			R_NET_ADDRESS,
 			NetAddress
@@ -164,8 +164,8 @@
 	DWORD	Unknown2
 	)
 {
-	NTSTATUS	Status = STATUS_SUCCESS;
 #if 0	
+	NTSTATUS	Status = STATUS_SUCCESS;
 	Status = TdiDeRegister (
 			R_NOTIFICATION_HANDLER,
 			NotificationHandler
Index: drivers/net/wshtcpip/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/net/wshtcpip/makefile,v
retrieving revision 1.9
diff -u -w -r1.9 makefile
--- drivers/net/wshtcpip/makefile	8 Sep 2002 10:22:21 -0000	1.9
+++ drivers/net/wshtcpip/makefile	13 Nov 2003 02:27:44 -0000
@@ -8,7 +8,7 @@
 
 TARGET_BASE = 0x777c0000
 
-TARGET_CFLAGS = -DUNICODE
+TARGET_CFLAGS = -DUNICODE -Werror -Wall
 
 TARGET_SDKLIBS = ntdll.a kernel32.a ws2_32.a
 
Index: drivers/storage/atapi/atapi.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/storage/atapi/atapi.c,v
retrieving revision 1.44
diff -u -w -r1.44 atapi.c
--- drivers/storage/atapi/atapi.c	22 Aug 2003 13:50:39 -0000	1.44
+++ drivers/storage/atapi/atapi.c	13 Nov 2003 02:27:58 -0000
@@ -135,7 +135,9 @@
 //  don't waste space
 
 #pragma  alloc_text(init, DriverEntry)
+#if 0
 #pragma  alloc_text(init, IDECreateController)
+#endif
 #pragma  alloc_text(init, IDEPolledRead)
 
 //  make the PASSIVE_LEVEL routines pageable, so that they don't
@@ -199,9 +201,11 @@
 		    IN BOOLEAN Atapi,
 		    OUT PIDE_DRIVE_IDENTIFY DrvParms);
 
+#if 0
 static BOOLEAN
 IDEResetController(IN ULONG CommandPort,
 		   IN ULONG ControlPort);
+#endif
 
 static int
 AtapiPolledRead(IN ULONG CommandPort,
@@ -1302,6 +1306,7 @@
 }
 
 
+#if 0
 //    AtapiResetController
 //
 //  DESCRIPTION:
@@ -1351,7 +1356,7 @@
     //  the registers are initialized correctly
   return(IDEReadError(CommandPort) == 1);
 }
-
+#endif
 /*
  *  AtapiIdentifyDevice
  *
@@ -1822,7 +1827,7 @@
 	break;
     }
 
-  CdbSize = (DeviceExtension->DeviceParams[Srb->TargetId].ConfigBits & 0x3 == 1) ? 16 : 12;
+  CdbSize = ((DeviceExtension->DeviceParams[Srb->TargetId].ConfigBits & 0x3) == 1) ? 16 : 12;
   DPRINT("CdbSize: %lu\n", CdbSize);
 
   /* Write command packet */
Index: drivers/storage/atapi/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/storage/atapi/makefile,v
retrieving revision 1.2
diff -u -w -r1.2 makefile
--- drivers/storage/atapi/makefile	5 Apr 2003 09:37:43 -0000	1.2
+++ drivers/storage/atapi/makefile	13 Nov 2003 02:27:58 -0000
@@ -12,6 +12,8 @@
 
 TARGET_OBJECTS = $(TARGET_NAME).o
 
+TARGET_CFLAGS = -Werror -Wall
+
 include $(PATH_TO_TOP)/rules.mak
 
 include $(TOOLS_PATH)/helper.mk
Index: drivers/storage/cdrom/cdrom.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/storage/cdrom/cdrom.c,v
retrieving revision 1.25
diff -u -w -r1.25 cdrom.c
--- drivers/storage/cdrom/cdrom.c	10 Nov 2003 18:09:54 -0000	1.25
+++ drivers/storage/cdrom/cdrom.c	13 Nov 2003 02:28:05 -0000
@@ -437,16 +437,9 @@
 			     IN PCLASS_INIT_DATA InitializationData)
 {
   PDEVICE_EXTENSION DiskDeviceExtension; /* defined in class2.h */
-  OBJECT_ATTRIBUTES ObjectAttributes;
-  UNICODE_STRING UnicodeDeviceDirName;
   PDEVICE_OBJECT DiskDeviceObject;
-  SCSI_REQUEST_BLOCK Srb;
   PCDROM_DATA CdromData;
   CHAR NameBuffer[80];
-  HANDLE Handle;
-  PUCHAR Buffer;
-  ULONG Length;
-  PCDB Cdb;
   NTSTATUS Status;
 
   DPRINT("CdromClassCreateDeviceObject() called\n");
Index: drivers/storage/cdrom/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/storage/cdrom/makefile,v
retrieving revision 1.2
diff -u -w -r1.2 makefile
--- drivers/storage/cdrom/makefile	5 Apr 2003 09:37:43 -0000	1.2
+++ drivers/storage/cdrom/makefile	13 Nov 2003 02:28:06 -0000
@@ -12,6 +12,8 @@
 
 TARGET_OBJECTS = $(TARGET_NAME).o
 
+TARGET_CFLAGS = -Wall -Werror
+
 include $(PATH_TO_TOP)/rules.mak
 
 include $(TOOLS_PATH)/helper.mk
Index: drivers/storage/class2/class2.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/storage/class2/class2.c,v
retrieving revision 1.45
diff -u -w -r1.45 class2.c
--- drivers/storage/class2/class2.c	11 Nov 2003 15:31:31 -0000	1.45
+++ drivers/storage/class2/class2.c	13 Nov 2003 02:28:18 -0000
@@ -729,7 +729,6 @@
   PUCHAR Buffer;
   ULONG Bus;
   ULONG UnclaimedDevices = 0;
-  NTSTATUS Status;
 
   DPRINT("ScsiClassFindUnclaimedDevices() called\n");
 
@@ -1028,7 +1027,6 @@
   PIO_ERROR_LOG_PACKET LogPacket;
 #endif
   PSENSE_DATA SenseData;
-  NTSTATUS LogStatus;
   BOOLEAN LogError;
   BOOLEAN Retry;
 
Index: drivers/storage/class2/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/storage/class2/makefile,v
retrieving revision 1.4
diff -u -w -r1.4 makefile
--- drivers/storage/class2/makefile	5 Apr 2003 09:37:43 -0000	1.4
+++ drivers/storage/class2/makefile	13 Nov 2003 02:28:18 -0000
@@ -8,6 +8,8 @@
 
 TARGET_NAME = class2
 
+TARGET_CFLAGS = -Wall -Werror
+
 TARGET_OBJECTS = $(TARGET_NAME).o
 
 include $(PATH_TO_TOP)/rules.mak
Index: drivers/storage/disk/disk.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/storage/disk/disk.c,v
retrieving revision 1.32
diff -u -w -r1.32 disk.c
--- drivers/storage/disk/disk.c	23 Jul 2003 18:45:08 -0000	1.32
+++ drivers/storage/disk/disk.c	13 Nov 2003 02:28:29 -0000
@@ -1714,7 +1714,6 @@
   HANDLE BusKey;
   ULONG DiskNumber;
   ULONG Length;
-  ULONG i;
   ULONG Cylinders;
   ULONG Sectors;
   ULONG SectorsPerTrack;
Index: drivers/storage/disk/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/storage/disk/makefile,v
retrieving revision 1.3
diff -u -w -r1.3 makefile
--- drivers/storage/disk/makefile	5 Apr 2003 09:37:43 -0000	1.3
+++ drivers/storage/disk/makefile	13 Nov 2003 02:28:29 -0000
@@ -8,6 +8,8 @@
 
 TARGET_NAME = disk
 
+TARGET_CFLAGS = -Wall -Werror
+
 TARGET_DDKLIBS = class2.a
 
 TARGET_OBJECTS = $(TARGET_NAME).o
Index: drivers/storage/diskdump/Makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/storage/diskdump/Makefile,v
retrieving revision 1.1
diff -u -w -r1.1 Makefile
--- drivers/storage/diskdump/Makefile	27 Aug 2003 21:28:08 -0000	1.1
+++ drivers/storage/diskdump/Makefile	13 Nov 2003 02:28:29 -0000
@@ -12,6 +12,8 @@
 
 TARGET_OBJECTS = $(TARGET_NAME).o diskdump_helper.o
 
+TARGET_CFLAGS = -Wall -Werror
+
 include $(PATH_TO_TOP)/rules.mak
 
 include $(TOOLS_PATH)/helper.mk
Index: drivers/storage/diskdump/diskdump.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/storage/diskdump/diskdump.c,v
retrieving revision 1.2
diff -u -w -r1.2 diskdump.c
--- drivers/storage/diskdump/diskdump.c	18 Oct 2003 18:49:08 -0000	1.2
+++ drivers/storage/diskdump/diskdump.c	13 Nov 2003 02:28:32 -0000
@@ -64,10 +64,10 @@
 
 MM_CORE_DUMP_FUNCTIONS DiskDumpFunctions =
   {
-    DiskDumpPrepare,
-    DiskDumpInit,
-    DiskDumpWrite,
-    DiskDumpFinish,
+    (void *)DiskDumpPrepare, //cast to void as workaround for warning
+    (void *)DiskDumpInit,
+    (void *)DiskDumpWrite,
+    (void *)DiskDumpFinish,
   };
 
 typedef struct
Index: drivers/storage/scsiport/makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/storage/scsiport/makefile,v
retrieving revision 1.5
diff -u -w -r1.5 makefile
--- drivers/storage/scsiport/makefile	5 Apr 2003 09:37:44 -0000	1.5
+++ drivers/storage/scsiport/makefile	13 Nov 2003 02:28:32 -0000
@@ -10,6 +10,8 @@
 
 TARGET_OBJECTS = $(TARGET_NAME).o
 
+TARGET_CFLAGS = -Wall -Werror
+
 include $(PATH_TO_TOP)/rules.mak
 
 include $(TOOLS_PATH)/helper.mk
Index: drivers/storage/scsiport/scsiport.c
===================================================================
RCS file: /CVS/ReactOS/reactos/drivers/storage/scsiport/scsiport.c,v
retrieving revision 1.43
diff -u -w -r1.43 scsiport.c
--- drivers/storage/scsiport/scsiport.c	1 Nov 2003 10:42:32 -0000	1.43
+++ drivers/storage/scsiport/scsiport.c	13 Nov 2003 02:28:45 -0000
@@ -73,12 +73,6 @@
 ScsiPortStartIo(IN PDEVICE_OBJECT DeviceObject,
 		IN PIRP Irp);
 
-static IO_ALLOCATION_ACTION STDCALL
-ScsiPortAllocateController(IN PDEVICE_OBJECT DeviceObject,
-			   IN PIRP Irp,
-			   IN PVOID MapRegisterBase,
-			   IN PVOID Context);
-
 static BOOLEAN STDCALL
 ScsiPortStartPacket(IN OUT PVOID Context);
 
@@ -471,6 +465,7 @@
 {
   DPRINT1("ScsiPortGetSrb()\n");
   UNIMPLEMENTED;
+  return NULL;
 }
 
 
@@ -610,7 +605,6 @@
 		   IN PVOID HwContext)
 {
   PDRIVER_OBJECT DriverObject = (PDRIVER_OBJECT)Argument1;
-  PUNICODE_STRING RegistryPath = (PUNICODE_STRING)Argument2;
   PSCSI_PORT_DEVICE_EXTENSION DeviceExtension;
   PCONFIGURATION_INFORMATION SystemConfig;
   PPORT_CONFIGURATION_INFORMATION PortConfig;
@@ -1544,7 +1538,6 @@
   PIO_STACK_LOCATION IrpStack;
   PSCSI_REQUEST_BLOCK Srb;
   KIRQL oldIrql;
-  BOOLEAN Result;
 
   DPRINT("ScsiPortStartIo() called!\n");
 
@@ -1866,7 +1859,6 @@
   ULONG Bus;
   ULONG Target;
   ULONG Lun;
-  BOOLEAN Result;
   NTSTATUS Status;
 
   DPRINT ("SpiScanAdapter() called\n");
@@ -2200,13 +2192,6 @@
   Cdb->CDB6INQUIRY.AllocationLength = sizeof(SENSE_DATA);
 
   return(Srb);
-}
-
-
-static VOID
-ScsiPortFreeSenseRequestSrb(PSCSI_PORT_DEVICE_EXTENSION DeviceExtension)
-{
-  DeviceExtension->OriginalSrb = NULL;
 }
 
 


More information about the Ros-kernel mailing list