Author: akhaldi
Date: Sun Sep 11 00:40:20 2011
New Revision: 53681
URL:
http://svn.reactos.org/svn/reactos?rev=53681&view=rev
Log:
* Comment out some unused but set variables, remove some others.
Modified:
trunk/reactos/base/applications/mscutils/servman/mainwnd.c
trunk/reactos/base/applications/taskmgr/graph.c
trunk/reactos/base/applications/taskmgr/taskmgr.c
trunk/reactos/dll/cpl/desk/advmon.c
trunk/reactos/drivers/bus/acpi/compbatt/compbatt.c
trunk/reactos/drivers/bus/pcix/arb/ar_memio.c
trunk/reactos/drivers/bus/pcix/arb/arb_comn.c
trunk/reactos/drivers/bus/pcix/debug.c
trunk/reactos/drivers/bus/pcix/pci/ppbridge.c
trunk/reactos/drivers/directx/dxg/eng.c
trunk/reactos/drivers/storage/class/disk/disk.c
trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c
trunk/reactos/drivers/storage/scsiport/scsiport.c
trunk/reactos/drivers/video/displays/vga/objects/bitblt.c
trunk/reactos/drivers/video/displays/vga/objects/paint.c
trunk/reactos/drivers/video/displays/vga/vgavideo/vgavideo.c
trunk/reactos/hal/halx86/acpi/halpnpdd.c
trunk/reactos/hal/halx86/legacy/bus/pcibus.c
trunk/reactos/lib/rtl/actctx.c
trunk/reactos/lib/rtl/rangelist.c
Modified: trunk/reactos/base/applications/mscutils/servman/mainwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/mainwnd.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/servman/mainwnd.c [iso-8859-1] Sun Sep 11
00:40:20 2011
@@ -912,8 +912,8 @@
Info);
if (hMainWnd == NULL)
{
- int ret;
- ret = GetLastError();
+ //int ret;
+ //ret = GetLastError();
GetError();
HeapFree(ProcessHeap,
0,
Modified: trunk/reactos/base/applications/taskmgr/graph.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/graph.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/graph.c [iso-8859-1] Sun Sep 11 00:40:20 2011
@@ -410,7 +410,7 @@
void Graph_DrawMemUsageHistoryGraph(HDC hDC, HWND hWnd)
{
RECT rcClient;
- ULONGLONG CommitChargeLimit;
+ //ULONGLONG CommitChargeLimit;
int i;
static int offset = 0;
@@ -430,7 +430,7 @@
/*
* Get the memory usage
*/
- CommitChargeLimit = (ULONGLONG)PerfDataGetCommitChargeLimitK();
+ //CommitChargeLimit = (ULONGLONG)PerfDataGetCommitChargeLimitK();
/*
* Draw the graph background
Modified: trunk/reactos/base/applications/taskmgr/taskmgr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/taskmgr.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/taskmgr.c [iso-8859-1] Sun Sep 11 00:40:20
2011
@@ -128,7 +128,6 @@
RECT rc;
#endif
LPRECT pRC;
- int idctrl;
LPNMHDR pnmh;
WINDOWPLACEMENT wp;
@@ -304,7 +303,6 @@
break;
case WM_NOTIFY:
- idctrl = (int)wParam;
pnmh = (LPNMHDR)lParam;
if ((pnmh->hwndFrom == hTabWnd) &&
(pnmh->idFrom == IDC_TAB) &&
@@ -772,11 +770,11 @@
void TaskManager_OnRestoreMainWindow(void)
{
- HMENU hMenu, hOptionsMenu;
+ //HMENU hMenu, hOptionsMenu;
BOOL OnTop;
- hMenu = GetMenu(hMainWnd);
- hOptionsMenu = GetSubMenu(hMenu, OPTIONS_MENU_INDEX);
+ //hMenu = GetMenu(hMainWnd);
+ //hOptionsMenu = GetSubMenu(hMenu, OPTIONS_MENU_INDEX);
OnTop = ((GetWindowLongPtrW(hMainWnd, GWL_EXSTYLE) & WS_EX_TOPMOST) != 0);
OpenIcon(hMainWnd);
Modified: trunk/reactos/dll/cpl/desk/advmon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/advmon.c?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/desk/advmon.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/advmon.c [iso-8859-1] Sun Sep 11 00:40:20 2011
@@ -88,11 +88,8 @@
IDataObject *pdo;
#ifdef _MSC_VER
HMODULE hShell32 = NULL;
+ CPSEAE msvc_SHCreatePropSheetExtArrayEx;
#endif
- CPSEAE msvc_SHCreatePropSheetExtArrayEx;
-
- /* silence gcc warning */
- msvc_SHCreatePropSheetExtArrayEx = NULL;
/* FIXME: Build the "%s and %s" caption string for the monitor and adapter
name */
szCaption[0] = _T('\0');
Modified: trunk/reactos/drivers/bus/acpi/compbatt/compbatt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/compbatt/…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/compbatt/compbatt.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/compbatt/compbatt.c [iso-8859-1] Sun Sep 11 00:40:20
2011
@@ -488,7 +488,7 @@
BATTERY_INFORMATION BatteryInfo;
BATTERY_REPORTING_SCALE BatteryGranularity[4];
PWCHAR BatteryName = L"Composite Battery";
- BATTERY_MANUFACTURE_DATE Date;
+ //BATTERY_MANUFACTURE_DATE Date;
ULONG Dummy, Time;
PVOID QueryData = NULL;
ULONG QueryLength = 0;
@@ -557,9 +557,9 @@
case BatteryManufactureDate:
/* Static data */
- Date.Day = 26;
- Date.Month = 06;
- Date.Year = 1997;
+ //Date.Day = 26;
+ //Date.Month = 06;
+ //Date.Year = 1997;
break;
case BatteryTemperature:
@@ -572,7 +572,6 @@
break;
default:
-
/* Everything else is unknown */
Status = STATUS_INVALID_PARAMETER;
break;
Modified: trunk/reactos/drivers/bus/pcix/arb/ar_memio.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/arb/ar_me…
==============================================================================
--- trunk/reactos/drivers/bus/pcix/arb/ar_memio.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pcix/arb/ar_memio.c [iso-8859-1] Sun Sep 11 00:40:20 2011
@@ -97,7 +97,7 @@
{
PPCI_ARBITER_INSTANCE PciArbiter;
//PARBITER_INSTANCE CommonInstance;
- NTSTATUS Status;
+ //NTSTATUS Status;
/* Only valid for root FDOs who are being applied the hack for the first time */
ASSERT(!FdoExtension->BrokenVideoHackApplied);
@@ -123,7 +123,7 @@
NULL);
ASSERT(NT_SUCCESS(Status));
#else
- Status = STATUS_SUCCESS;
+ //Status = STATUS_SUCCESS;
UNIMPLEMENTED;
while (TRUE);
#endif
Modified: trunk/reactos/drivers/bus/pcix/arb/arb_comn.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/arb/arb_c…
==============================================================================
--- trunk/reactos/drivers/bus/pcix/arb/arb_comn.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pcix/arb/arb_comn.c [iso-8859-1] Sun Sep 11 00:40:20 2011
@@ -127,7 +127,7 @@
IN PCM_RESOURCE_LIST Resources)
{
PPCI_PDO_EXTENSION PdoExtension;
- CM_RESOURCE_TYPE DesiredType;
+ //CM_RESOURCE_TYPE DesiredType;
PVOID Instance;
PCI_SIGNATURE ArbiterType;
@@ -162,12 +162,12 @@
if (ArbiterType == PciArb_Io)
{
/* I/O Port */
- DesiredType = CmResourceTypePort;
+ //DesiredType = CmResourceTypePort;
}
else if (ArbiterType == PciArb_Memory)
{
/* Device RAM */
- DesiredType = CmResourceTypeMemory;
+ //DesiredType = CmResourceTypeMemory;
}
else
{
Modified: trunk/reactos/drivers/bus/pcix/debug.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/debug.c?r…
==============================================================================
--- trunk/reactos/drivers/bus/pcix/debug.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pcix/debug.c [iso-8859-1] Sun Sep 11 00:40:20 2011
@@ -125,7 +125,8 @@
IN USHORT MaxMinor)
{
PPCI_PDO_EXTENSION PdoDeviceExtension;
- ULONG BreakMask, DebugLevel = 0;
+ ULONG BreakMask;
+ //ULONG DebugLevel = 0;
PCHAR IrpString;
/* Only two functions are recognized */
@@ -161,11 +162,11 @@
/* Choose the correct debug level based on which function this is */
if (IoStackLocation->MajorFunction == IRP_MJ_POWER)
{
- DebugLevel = 0x500;
+ //DebugLevel = 0x500;
}
else if (IoStackLocation->MajorFunction == IRP_MJ_PNP)
{
- DebugLevel = 0x200;
+ //DebugLevel = 0x200;
}
/* For a PDO, print out the bus, device, and function number */
Modified: trunk/reactos/drivers/bus/pcix/pci/ppbridge.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/pci/ppbri…
==============================================================================
--- trunk/reactos/drivers/bus/pcix/pci/ppbridge.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pcix/pci/ppbridge.c [iso-8859-1] Sun Sep 11 00:40:20 2011
@@ -680,13 +680,13 @@
PPBridge_ChangeResourceSettings(IN PPCI_PDO_EXTENSION PdoExtension,
IN PPCI_COMMON_HEADER PciData)
{
- BOOLEAN IoActive;
+ //BOOLEAN IoActive;
PPCI_FDO_EXTENSION FdoExtension;
PPCI_FUNCTION_RESOURCES PciResources;
ULONG i;
/* Check if I/O Decodes are enabled */
- IoActive = (PciData->u.type1.IOBase & 0xF) == 1;
+ //IoActive = (PciData->u.type1.IOBase & 0xF) == 1;
/*
* Check for Intel ICH PCI-to-PCI (i82801) bridges (used on the i810,
Modified: trunk/reactos/drivers/directx/dxg/eng.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/directx/dxg/eng.c?…
==============================================================================
--- trunk/reactos/drivers/directx/dxg/eng.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/directx/dxg/eng.c [iso-8859-1] Sun Sep 11 00:40:20 2011
@@ -31,11 +31,11 @@
DxDdUnlockDirectDrawSurface(PDD_SURFACE_LOCAL pSurface)
{
BOOL retVal = FALSE;
- PEDD_SURFACE pEDDSurface = NULL;
+ //PEDD_SURFACE pEDDSurface = NULL;
if (pSurface)
{
- pEDDSurface = (PEDD_SURFACE)( ((PBYTE)pSurface) - sizeof(DD_BASEOBJECT));
+ // pEDDSurface = (PEDD_SURFACE)( ((PBYTE)pSurface) - sizeof(DD_BASEOBJECT));
// InterlockedDecrement(&pEDDSurface->pobj.cExclusiveLock);
retVal = TRUE;
}
Modified: trunk/reactos/drivers/storage/class/disk/disk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/disk…
==============================================================================
--- trunk/reactos/drivers/storage/class/disk/disk.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/class/disk/disk.c [iso-8859-1] Sun Sep 11 00:40:20 2011
@@ -651,16 +651,16 @@
HANDLE handle;
NTSTATUS status;
PDEVICE_OBJECT deviceObject = NULL;
- PDEVICE_OBJECT physicalDevice;
+ //PDEVICE_OBJECT physicalDevice;
PDISK_GEOMETRY_EX diskGeometry = NULL;
PDEVICE_EXTENSION deviceExtension = NULL;
- PDEVICE_EXTENSION physicalDeviceExtension;
+ //PDEVICE_EXTENSION physicalDeviceExtension;
UCHAR pathId = LunInfo->PathId;
UCHAR targetId = LunInfo->TargetId;
UCHAR lun = LunInfo->Lun;
- BOOLEAN writeCache;
+ //BOOLEAN writeCache;
PVOID senseData = NULL;
- ULONG srbFlags;
+ //ULONG srbFlags;
ULONG timeOut = 0;
BOOLEAN srbListInitialized = FALSE;
@@ -822,8 +822,8 @@
// This is the physical device object.
//
- physicalDevice = deviceObject;
- physicalDeviceExtension = deviceExtension;
+ //physicalDevice = deviceObject;
+ //physicalDeviceExtension = deviceExtension;
//
// Save address of port driver capabilities.
@@ -874,7 +874,7 @@
LunInfo,
PortCapabilities);
- srbFlags = deviceExtension->SrbFlags;
+ //srbFlags = deviceExtension->SrbFlags;
//
// Allocate buffer for drive geometry.
@@ -966,7 +966,7 @@
DisableWriteCache(deviceObject,LunInfo);
- writeCache = deviceExtension->DeviceFlags & DEV_WRITE_CACHE;
+ //writeCache = deviceExtension->DeviceFlags & DEV_WRITE_CACHE;
//
// NOTE: At this point one device object has been successfully created.
Modified: trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/ramd…
==============================================================================
--- trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] Sun Sep 11 00:40:20
2011
@@ -403,7 +403,8 @@
IN BOOLEAN ValidateOnly,
OUT PRAMDISK_DRIVE_EXTENSION *NewDriveExtension)
{
- ULONG BasePage, ViewCount, DiskType, Length;
+ ULONG BasePage, DiskType, Length;
+ //ULONG ViewCount;
NTSTATUS Status;
PDEVICE_OBJECT DeviceObject;
PRAMDISK_DRIVE_EXTENSION DriveExtension;
@@ -456,11 +457,11 @@
//
return STATUS_INVALID_PARAMETER;
}
-
+
//
// Read the view count instead
//
- ViewCount = Input->ViewCount;
+ //ViewCount = Input->ViewCount;
//
// Sanitize disk options
@@ -1288,11 +1289,11 @@
IN PIRP Irp)
{
PRAMDISK_DRIVE_EXTENSION DeviceExtension;
- ULONG Length;
- LARGE_INTEGER ByteOffset;
+ //ULONG Length;
+ //LARGE_INTEGER ByteOffset;
PIO_STACK_LOCATION IoStackLocation;
NTSTATUS Status, ReturnStatus;
-
+
//
// Get the device extension and make sure this isn't a bus
//
@@ -1310,8 +1311,8 @@
// Capture parameters
//
IoStackLocation = IoGetCurrentIrpStackLocation(Irp);
- Length = IoStackLocation->Parameters.Read.Length;
- ByteOffset = IoStackLocation->Parameters.Read.ByteOffset;
+ //Length = IoStackLocation->Parameters.Read.Length;
+ //ByteOffset = IoStackLocation->Parameters.Read.ByteOffset;
//
// FIXME: Validate offset
Modified: trunk/reactos/drivers/storage/scsiport/scsiport.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/scsiport/s…
==============================================================================
--- trunk/reactos/drivers/storage/scsiport/scsiport.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/scsiport/scsiport.c [iso-8859-1] Sun Sep 11 00:40:20
2011
@@ -1836,13 +1836,11 @@
IN ULONG ErrorCode,
IN ULONG UniqueId)
{
- PSCSI_PORT_DEVICE_EXTENSION DeviceExtension;
+ //PSCSI_PORT_DEVICE_EXTENSION DeviceExtension;
DPRINT1("ScsiPortLogError() called\n");
- DeviceExtension = CONTAINING_RECORD(HwDeviceExtension,
- SCSI_PORT_DEVICE_EXTENSION,
- MiniPortDeviceExtension);
+ //DeviceExtension = CONTAINING_RECORD(HwDeviceExtension, SCSI_PORT_DEVICE_EXTENSION,
MiniPortDeviceExtension);
DPRINT("ScsiPortLogError() done\n");
@@ -4209,7 +4207,7 @@
PSCSI_PORT_LUN_EXTENSION LunExtension;
LONG Result;
PIRP Irp;
- ULONG SequenceNumber;
+ //ULONG SequenceNumber;
Srb = SrbInfo->Srb;
Irp = Srb->OriginalRequest;
@@ -4309,7 +4307,7 @@
/* Save transfer length in the IRP */
Irp->IoStatus.Information = Srb->DataTransferLength;
- SequenceNumber = SrbInfo->SequenceNumber;
+ //SequenceNumber = SrbInfo->SequenceNumber;
SrbInfo->SequenceNumber = 0;
/* Decrement the queue count */
@@ -4577,7 +4575,6 @@
IN PVOID ServiceContext)
{
PSCSI_PORT_DEVICE_EXTENSION DeviceExtension;
- BOOLEAN Result;
DPRINT("ScsiPortIsr() called!\n");
@@ -4588,7 +4585,7 @@
return FALSE;
/* Call miniport's HwInterrupt routine */
- Result =
DeviceExtension->HwInterrupt(&DeviceExtension->MiniPortDeviceExtension);
+ DeviceExtension->HwInterrupt(&DeviceExtension->MiniPortDeviceExtension);
/* If flag of notification is set - queue a DPC */
if (DeviceExtension->InterruptData.Flags & SCSI_PORT_NOTIFICATION_NEEDED)
Modified: trunk/reactos/drivers/video/displays/vga/objects/bitblt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/displays/vga…
==============================================================================
--- trunk/reactos/drivers/video/displays/vga/objects/bitblt.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/displays/vga/objects/bitblt.c [iso-8859-1] Sun Sep 11
00:40:20 2011
@@ -86,7 +86,7 @@
UCHAR *GDIpos, *initial;
/* Used by the temporary DFB */
- DEVSURF DestDevSurf;
+ //DEVSURF DestDevSurf;
/* FIXME: Optimize to retrieve entire bytes at a time (see
../vgavideo/vgavideo.c:vgaGetByte) */
@@ -97,11 +97,10 @@
if (ColorTranslation == NULL)
{
/* Prepare a Dest Dev Target and copy from the DFB to the DIB */
- DestDevSurf.NextScan = Dest->lDelta;
- DestDevSurf.StartBmp = Dest->pvScan0;
+ //DestDevSurf.NextScan = Dest->lDelta;
+ //DestDevSurf.StartBmp = Dest->pvScan0;
DIB_BltFromVGA(SourcePoint->x, SourcePoint->y, dx, dy, Dest->pvScan0,
Dest->lDelta);
-
}
else
{
Modified: trunk/reactos/drivers/video/displays/vga/objects/paint.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/displays/vga…
==============================================================================
--- trunk/reactos/drivers/video/displays/vga/objects/paint.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/displays/vga/objects/paint.c [iso-8859-1] Sun Sep 11
00:40:20 2011
@@ -11,11 +11,10 @@
BOOL VGADDIFillSolid(SURFOBJ *Surface, RECTL Dimensions, ULONG iColor)
{
int x, y, x2, y2, w, h, j;
- ULONG offset, pre1;
- ULONG orgpre1, orgx, midpre1, tmppre1;
+ ULONG orgx, pre1, midpre1, tmppre1;
+ //ULONG offset, orgpre1;
int ileftpix, imidpix, irightpix;
/* double leftpix, midpix, rightpix;*/
- UCHAR a;
/* Swap dimensions so that x, y are at topmost left */
if ( Dimensions.right < Dimensions.left )
@@ -46,7 +45,7 @@
DPRINT("VGADDIFillSolid: x:%d, y:%d, w:%d, h:%d\n", x, y, w, h);
/* Calculate the starting offset */
- offset = xconv[x]+y80[y];
+ //offset = xconv[x]+y80[y];
/* Make a note of original x */
orgx = x;
@@ -57,7 +56,7 @@
imidpix = (w-ileftpix-irightpix) / 8;
pre1 = xconv[(x-1)&~7] + y80[y];
- orgpre1=pre1;
+ //orgpre1=pre1;
/* check for overlap ( very horizontally skinny rect ) */
if ( (ileftpix+irightpix) > w )
@@ -70,7 +69,7 @@
tmppre1 = pre1;
for ( j = y; j < y+h; j++ )
{
- a = READ_REGISTER_UCHAR ( vidmem+tmppre1 );
+ READ_REGISTER_UCHAR ( vidmem+tmppre1 );
WRITE_REGISTER_UCHAR ( vidmem+tmppre1, iColor );
tmppre1 += 80;
}
@@ -86,7 +85,7 @@
tmppre1 = pre1;
for ( j = y; j < y+h; j++ )
{
- a = READ_REGISTER_UCHAR(vidmem + tmppre1);
+ READ_REGISTER_UCHAR(vidmem + tmppre1);
WRITE_REGISTER_UCHAR(vidmem + tmppre1, iColor);
tmppre1 += 80;
}
@@ -120,7 +119,7 @@
for ( j = y; j < y+h; j++ )
{
- a = READ_REGISTER_UCHAR(vidmem + pre1);
+ READ_REGISTER_UCHAR(vidmem + pre1);
WRITE_REGISTER_UCHAR(vidmem + pre1, iColor);
pre1 += 80;
}
Modified: trunk/reactos/drivers/video/displays/vga/vgavideo/vgavideo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/displays/vga…
==============================================================================
--- trunk/reactos/drivers/video/displays/vga/vgavideo/vgavideo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/displays/vga/vgavideo/vgavideo.c [iso-8859-1] Sun Sep 11
00:40:20 2011
@@ -163,14 +163,13 @@
VOID vgaPutPixel(INT x, INT y, UCHAR c)
{
ULONG offset;
- UCHAR a;
offset = xconv[x]+y80[y];
WRITE_PORT_UCHAR((PUCHAR)GRA_I,0x08);
WRITE_PORT_UCHAR((PUCHAR)GRA_D,maskbit[x]);
- a = READ_REGISTER_UCHAR(vidmem + offset);
+ READ_REGISTER_UCHAR(vidmem + offset);
WRITE_REGISTER_UCHAR(vidmem + offset, c);
}
@@ -231,9 +230,8 @@
BOOL vgaHLine(INT x, INT y, INT len, UCHAR c)
{
- UCHAR a;
- ULONG pre1;
- ULONG orgpre1, orgx, midpre1;
+ ULONG orgx, pre1, midpre1;
+ //ULONG orgpre1;
LONG ileftpix, imidpix, irightpix;
orgx = x;
@@ -252,7 +250,7 @@
imidpix = (len-ileftpix-irightpix) / 8;
pre1 = xconv[(x-1)&~7] + y80[y];
- orgpre1=pre1;
+ //orgpre1=pre1;
/* check for overlap ( very short line ) */
if ( (ileftpix+irightpix) > len )
@@ -262,7 +260,7 @@
WRITE_PORT_UCHAR((PUCHAR)GRA_I,0x08); // set the mask
WRITE_PORT_UCHAR((PUCHAR)GRA_D,mask);
- a = READ_REGISTER_UCHAR(vidmem + pre1);
+ READ_REGISTER_UCHAR(vidmem + pre1);
WRITE_REGISTER_UCHAR(vidmem + pre1, c);
return TRUE;
@@ -275,7 +273,7 @@
WRITE_PORT_UCHAR((PUCHAR)GRA_I,0x08); // set the mask
WRITE_PORT_UCHAR((PUCHAR)GRA_D,startmasks[ileftpix]);
- a = READ_REGISTER_UCHAR(vidmem + pre1);
+ READ_REGISTER_UCHAR(vidmem + pre1);
WRITE_REGISTER_UCHAR(vidmem + pre1, c);
/* Prepare new x for the middle */
@@ -300,7 +298,7 @@
/* Write right pixels */
WRITE_PORT_UCHAR((PUCHAR)GRA_I,0x08); // set the mask bits
WRITE_PORT_UCHAR((PUCHAR)GRA_D, endmasks[irightpix]);
- a = READ_REGISTER_UCHAR(vidmem + pre1);
+ READ_REGISTER_UCHAR(vidmem + pre1);
WRITE_REGISTER_UCHAR(vidmem + pre1, c);
}
@@ -310,7 +308,6 @@
BOOL vgaVLine(INT x, INT y, INT len, UCHAR c)
{
INT offset, i;
- UCHAR a;
offset = xconv[x]+y80[y];
@@ -323,7 +320,7 @@
for(i=y; i<y+len; i++)
{
- a = READ_REGISTER_UCHAR(vidmem + offset);
+ READ_REGISTER_UCHAR(vidmem + offset);
WRITE_REGISTER_UCHAR(vidmem + offset, c);
offset += 80;
}
@@ -453,7 +450,6 @@
LONG x2 = x + w;
LONG y2 = y + h;
ULONG offset;
- UCHAR a;
for (i = x; i < x2; i++)
{
@@ -467,7 +463,7 @@
{
for (j = y; j < y2; j++)
{
- a = READ_REGISTER_UCHAR(vidmem + offset);
+ READ_REGISTER_UCHAR(vidmem + offset);
WRITE_REGISTER_UCHAR(vidmem + offset, (*pb & 0xf0) >> 4);
offset += 80;
pb += Source_lDelta;
@@ -477,7 +473,7 @@
{
for (j = y; j < y2; j++)
{
- a = READ_REGISTER_UCHAR(vidmem + offset);
+ READ_REGISTER_UCHAR(vidmem + offset);
WRITE_REGISTER_UCHAR(vidmem + offset, *pb & 0x0f);
offset += 80;
pb += Source_lDelta;
@@ -498,7 +494,6 @@
ULONG x2 = x + w;
ULONG y2 = y + h;
ULONG offset;
- UCHAR a;
for (i = x; i < x2; i++)
{
@@ -512,7 +507,7 @@
{
for (j = y; j < y2; j++)
{
- a = READ_REGISTER_UCHAR(vidmem + offset);
+ READ_REGISTER_UCHAR(vidmem + offset);
WRITE_REGISTER_UCHAR(vidmem + offset, XLATEOBJ_iXlate(Xlate, (*pb &
0xf0) >> 4));
offset += 80;
pb += Source_lDelta;
@@ -522,7 +517,7 @@
{
for (j = y; j < y2; j++)
{
- a = READ_REGISTER_UCHAR(vidmem + offset);
+ READ_REGISTER_UCHAR(vidmem + offset);
WRITE_REGISTER_UCHAR(vidmem + offset, XLATEOBJ_iXlate(Xlate, *pb &
0x0f));
offset += 80;
pb += Source_lDelta;
@@ -660,15 +655,15 @@
{
unsigned char *bp;
unsigned char *vp;
- unsigned char init_mask;
+ //unsigned char init_mask;
volatile unsigned char dummy;
- int byte_per_line;
+ //int byte_per_line;
int i, j, off, init_off = x&7;
bp = b;
ASSIGNVP4(x, y, vp)
- ASSIGNMK4(x, y, init_mask)
- byte_per_line = SCREEN_X >> 3;
+ //ASSIGNMK4(x, y, init_mask)
+ //byte_per_line = SCREEN_X >> 3;
WRITE_PORT_UCHAR((PUCHAR)GRA_I, 0x05); // write mode 2
WRITE_PORT_UCHAR((PUCHAR)GRA_D, 0x02);
@@ -795,7 +790,7 @@
unsigned char *bp, *bpX;
unsigned char *vp, *vpX;
unsigned char mask;
- volatile unsigned char dummy;
+ //volatile unsigned char dummy;
int byte_per_line;
int i, j;
@@ -817,7 +812,7 @@
vp = vpX;
for (j = h; j > 0; j--)
{
- dummy = *vp;
+ //dummy = *vp;
*vp = *bp;
bp += bw;
vp += byte_per_line;
@@ -838,7 +833,7 @@
unsigned char *bp, *bpX;
unsigned char *vp, *vpX;
unsigned char mask;
- volatile unsigned char dummy;
+ //volatile unsigned char dummy;
int byte_per_line;
int i, j;
@@ -862,7 +857,7 @@
{
if (*bp != Trans)
{
- dummy = *vp;
+ //dummy = *vp;
*vp = *bp;
}
bp += bw;
Modified: trunk/reactos/hal/halx86/acpi/halpnpdd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/acpi/halpnpdd.c…
==============================================================================
--- trunk/reactos/hal/halx86/acpi/halpnpdd.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/acpi/halpnpdd.c [iso-8859-1] Sun Sep 11 00:40:20 2011
@@ -282,12 +282,12 @@
HalpQueryCapabilities(IN PDEVICE_OBJECT DeviceObject,
OUT PDEVICE_CAPABILITIES Capabilities)
{
- PPDO_EXTENSION PdoExtension;
+ //PPDO_EXTENSION PdoExtension;
NTSTATUS Status;
PAGED_CODE();
/* Get the extension and check for valid version */
- PdoExtension = DeviceObject->DeviceExtension;
+ //PdoExtension = DeviceObject->DeviceExtension;
ASSERT(Capabilities->Version == 1);
if (Capabilities->Version == 1)
{
@@ -619,7 +619,7 @@
IN PIRP Irp)
{
PIO_STACK_LOCATION IoStackLocation;
- PPDO_EXTENSION PdoExtension;
+ //PPDO_EXTENSION PdoExtension;
PFDO_EXTENSION FdoExtension;
NTSTATUS Status;
UCHAR Minor;
@@ -691,8 +691,7 @@
{
/* This is a PDO instead */
ASSERT(FdoExtension->ExtensionType == PdoExtensionType);
- PdoExtension = (PPDO_EXTENSION)FdoExtension;
-
+ //PdoExtension = (PPDO_EXTENSION)FdoExtension;
/* Query the IRP type */
Status = STATUS_SUCCESS;
switch (Minor)
Modified: trunk/reactos/hal/halx86/legacy/bus/pcibus.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/legacy/bus/pcib…
==============================================================================
--- trunk/reactos/hal/halx86/legacy/bus/pcibus.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/legacy/bus/pcibus.c [iso-8859-1] Sun Sep 11 00:40:20 2011
@@ -311,7 +311,7 @@
PCI_SLOT_NUMBER MultiSlot;
PPCIPBUSDATA BusData = (PPCIPBUSDATA)BusHandler->BusData;
UCHAR HeaderType;
- ULONG Device;
+ //ULONG Device;
/* Simple validation */
if (Slot.u.bits.Reserved) return FALSE;
@@ -321,7 +321,7 @@
if (!Slot.u.bits.FunctionNumber) return TRUE;
/* Functions 0+ need Multi-Function support, so check the slot */
- Device = Slot.u.bits.DeviceNumber;
+ //Device = Slot.u.bits.DeviceNumber;
MultiSlot = Slot;
MultiSlot.u.bits.FunctionNumber = 0;
Modified: trunk/reactos/lib/rtl/actctx.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/actctx.c?rev=53681…
==============================================================================
--- trunk/reactos/lib/rtl/actctx.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/actctx.c [iso-8859-1] Sun Sep 11 00:40:20 2011
@@ -2825,10 +2825,11 @@
FASTCALL
RtlDeactivateActivationContextUnsafeFast(IN
PRTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME_EXTENDED Frame)
{
- RTL_ACTIVATION_CONTEXT_STACK_FRAME *frame, *top;
+ RTL_ACTIVATION_CONTEXT_STACK_FRAME *frame;
+ //RTL_ACTIVATION_CONTEXT_STACK_FRAME *top;
/* find the right frame */
- top = NtCurrentTeb()->ActivationContextStackPointer->ActiveFrame;
+ //top = NtCurrentTeb()->ActivationContextStackPointer->ActiveFrame;
frame = &Frame->Frame;
if (!frame)
Modified: trunk/reactos/lib/rtl/rangelist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/rangelist.c?rev=53…
==============================================================================
--- trunk/reactos/lib/rtl/rangelist.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/rangelist.c [iso-8859-1] Sun Sep 11 00:40:20 2011
@@ -57,7 +57,7 @@
IN PVOID Owner OPTIONAL)
{
PRTL_RANGE_ENTRY RangeEntry;
- PRTL_RANGE_ENTRY Previous;
+ //PRTL_RANGE_ENTRY Previous;
PRTL_RANGE_ENTRY Current;
PLIST_ENTRY Entry;
@@ -91,7 +91,7 @@
}
else
{
- Previous = NULL;
+ //Previous = NULL;
Entry = RangeList->ListHead.Flink;
while (Entry != &RangeList->ListHead)
{
@@ -108,7 +108,7 @@
return STATUS_SUCCESS;
}
- Previous = Current;
+ //Previous = Current;
Entry = Entry->Flink;
}