Author: akhaldi
Date: Sun Sep 11 15:39:19 2011
New Revision: 53691
URL:
http://svn.reactos.org/svn/reactos?rev=53691&view=rev
Log:
* Comment out some unused but set variables, remove some others.
* Allow warnings for some 3rd party code.
Modified:
trunk/reactos/base/setup/usetup/interface/usetup.c
trunk/reactos/dll/win32/kernel32/client/except.c
trunk/reactos/dll/win32/kernel32/client/file/console.c
trunk/reactos/dll/win32/kernel32/client/loader.c
trunk/reactos/dll/win32/kernel32/client/proc.c
trunk/reactos/drivers/bus/acpi/CMakeLists.txt
trunk/reactos/drivers/filesystems/npfs/create.c
trunk/reactos/drivers/filesystems/npfs/dirctl.c
trunk/reactos/drivers/filesystems/npfs/finfo.c
trunk/reactos/drivers/filesystems/npfs/fsctrl.c
trunk/reactos/drivers/filesystems/npfs/rw.c
trunk/reactos/drivers/filesystems/ntfs/dirctl.c
trunk/reactos/drivers/input/mouclass/mouclass.c
trunk/reactos/drivers/ksfilter/ks/api.c
trunk/reactos/drivers/network/afd/afd/main.c
trunk/reactos/drivers/network/tcpip/datalink/lan.c
trunk/reactos/hal/halx86/legacy/halpnpdd.c
trunk/reactos/lib/3rdparty/cardlib/CMakeLists.txt
trunk/reactos/lib/drivers/ip/transport/datagram/datagram.c
trunk/reactos/lib/fslib/vfatlib/check/check.c
trunk/reactos/lib/pseh/CMakeLists.txt
trunk/reactos/lib/sdk/crt/wine/undname.c
Modified: trunk/reactos/base/setup/usetup/interface/usetup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/interfac…
==============================================================================
--- trunk/reactos/base/setup/usetup/interface/usetup.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/interface/usetup.c [iso-8859-1] Sun Sep 11 15:39:19
2011
@@ -2266,12 +2266,12 @@
FormatPartitionPage(PINPUT_RECORD Ir)
{
WCHAR PathBuffer[MAX_PATH];
- PDISKENTRY DiskEntry;
PPARTENTRY PartEntry;
UCHAR PartNum;
NTSTATUS Status;
#ifndef NDEBUG
+ PDISKENTRY DiskEntry;
ULONG Line;
ULONG i;
PLIST_ENTRY Entry;
@@ -2287,7 +2287,9 @@
return QUIT_PAGE;
}
+#ifndef NDEBUG
DiskEntry = PartitionList->CurrentDisk;
+#endif
PartEntry = PartitionList->CurrentPartition;
PartNum = PartitionList->CurrentPartitionNumber;
Modified: trunk/reactos/dll/win32/kernel32/client/except.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/except.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/except.c [iso-8859-1] Sun Sep 11 15:39:19
2011
@@ -444,7 +444,7 @@
IsBadReadPtr(IN LPCVOID lp,
IN UINT_PTR ucb)
{
- ULONG PageSize;
+ //ULONG PageSize;
BOOLEAN Result = FALSE;
volatile CHAR *Current;
PCHAR Last;
@@ -454,7 +454,7 @@
if (!lp) return TRUE;
/* Get the page size */
- PageSize = BaseStaticServerData->SysInfo.PageSize;
+ //PageSize = BaseStaticServerData->SysInfo.PageSize;
/* Calculate the last page */
Last = (PCHAR)((ULONG_PTR)lp + ucb - 1);
@@ -516,7 +516,7 @@
IsBadWritePtr(LPVOID lp,
UINT_PTR ucb)
{
- ULONG PageSize;
+ //ULONG PageSize;
BOOLEAN Result = FALSE;
volatile CHAR *Current;
PCHAR Last;
@@ -526,7 +526,7 @@
if (!lp) return TRUE;
/* Get the page size */
- PageSize = BaseStaticServerData->SysInfo.PageSize;
+ //PageSize = BaseStaticServerData->SysInfo.PageSize;
/* Calculate the last page */
Last = (PCHAR)((ULONG_PTR)lp + ucb - 1);
Modified: trunk/reactos/dll/win32/kernel32/client/file/console.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/console.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/console.c [iso-8859-1] Sun Sep 11
15:39:19 2011
@@ -2045,7 +2045,6 @@
CSR_API_MESSAGE Request;
ULONG CsrRequest;
PCSR_CAPTURE_BUFFER CaptureBuffer;
- NTSTATUS Status;
ULONG Size;
if (lpBuffer == NULL)
@@ -2079,10 +2078,10 @@
Request.Data.PeekConsoleInputRequest.Length = nLength;
/* Call the server */
- Status = CsrClientCallServer(&Request,
- CaptureBuffer,
- CsrRequest,
- sizeof(CSR_API_MESSAGE));
+ CsrClientCallServer(&Request,
+ CaptureBuffer,
+ CsrRequest,
+ sizeof(CSR_API_MESSAGE));
DPRINT("Server returned: %x\n", Request.Status);
/* Check for success*/
@@ -2280,7 +2279,6 @@
CSR_API_MESSAGE Request;
ULONG CsrRequest;
PCSR_CAPTURE_BUFFER CaptureBuffer;
- NTSTATUS Status;
DWORD Size;
if (lpBuffer == NULL)
@@ -2314,10 +2312,10 @@
Request.Data.WriteConsoleInputRequest.Length = nLength;
/* Call the server */
- Status = CsrClientCallServer(&Request,
- CaptureBuffer,
- CsrRequest,
- sizeof(CSR_API_MESSAGE));
+ CsrClientCallServer(&Request,
+ CaptureBuffer,
+ CsrRequest,
+ sizeof(CSR_API_MESSAGE));
DPRINT("Server returned: %x\n", Request.Status);
/* Check for success*/
@@ -2394,7 +2392,6 @@
CSR_API_MESSAGE Request;
ULONG CsrRequest;
PCSR_CAPTURE_BUFFER CaptureBuffer;
- NTSTATUS Status;
DWORD Size, SizeX, SizeY;
if (lpBuffer == NULL)
@@ -2430,10 +2427,10 @@
Request.Data.ReadConsoleOutputRequest.ReadRegion = *lpReadRegion;
/* Call the server */
- Status = CsrClientCallServer(&Request,
- CaptureBuffer,
- CsrRequest,
- sizeof(CSR_API_MESSAGE));
+ CsrClientCallServer(&Request,
+ CaptureBuffer,
+ CsrRequest,
+ sizeof(CSR_API_MESSAGE));
DPRINT("Server returned: %x\n", Request.Status);
/* Check for success*/
@@ -2522,7 +2519,6 @@
CSR_API_MESSAGE Request;
ULONG CsrRequest;
PCSR_CAPTURE_BUFFER CaptureBuffer;
- NTSTATUS Status;
ULONG Size;
Size = dwBufferSize.Y * dwBufferSize.X * sizeof(CHAR_INFO);
@@ -2555,10 +2551,10 @@
Request.Data.WriteConsoleOutputRequest.WriteRegion = *lpWriteRegion;
/* Call the server */
- Status = CsrClientCallServer(&Request,
- CaptureBuffer,
- CsrRequest,
- sizeof(CSR_API_MESSAGE));
+ CsrClientCallServer(&Request,
+ CaptureBuffer,
+ CsrRequest,
+ sizeof(CSR_API_MESSAGE));
DPRINT("Server returned: %x\n", Request.Status);
/* Check for success*/
@@ -2823,13 +2819,14 @@
PCSR_API_MESSAGE Request;
ULONG CsrRequest;
NTSTATUS Status;
- ULONG SizeBytes, CharSize, nChars;
+ ULONG CharSize, nChars;
+ //ULONG SizeBytes;
DWORD Written = 0;
CharSize = (bUnicode ? sizeof(WCHAR) : sizeof(CHAR));
nChars = min(nLength, CSRSS_MAX_WRITE_CONSOLE_OUTPUT_CHAR / CharSize);
- SizeBytes = nChars * CharSize;
+ //SizeBytes = nChars * CharSize;
Request = RtlAllocateHeap(RtlGetProcessHeap(), 0,
max(sizeof(CSR_API_MESSAGE),
Modified: trunk/reactos/dll/win32/kernel32/client/loader.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/loader.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/loader.c [iso-8859-1] Sun Sep 11 15:39:19
2011
@@ -593,7 +593,6 @@
FreeLibraryAndExitThread(HMODULE hLibModule,
DWORD dwExitCode)
{
- NTSTATUS Status;
if (LDR_IS_DATAFILE(hLibModule))
{
@@ -601,7 +600,7 @@
if (RtlImageNtHeader((PVOID)((ULONG_PTR)hLibModule & ~1)))
{
/* Unmap view */
- Status = NtUnmapViewOfSection(NtCurrentProcess(),
(PVOID)((ULONG_PTR)hLibModule & ~1));
+ NtUnmapViewOfSection(NtCurrentProcess(), (PVOID)((ULONG_PTR)hLibModule &
~1));
/* Unload alternate resource module */
LdrUnloadAlternateResourceModule(hLibModule);
@@ -610,7 +609,7 @@
else
{
/* Just unload it */
- Status = LdrUnloadDll((PVOID)hLibModule);
+ LdrUnloadDll((PVOID)hLibModule);
}
/* Exit thread */
Modified: trunk/reactos/dll/win32/kernel32/client/proc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/proc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/proc.c [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -642,7 +642,6 @@
PRTL_USER_PROCESS_PARAMETERS ProcessParameters;
PRTL_USER_PROCESS_PARAMETERS RemoteParameters = NULL;
UNICODE_STRING DllPath, ImageName, CommandLine, CurrentDirectory;
- UINT RetVal;
NTSTATUS Status;
PWCHAR ScanChar;
ULONG EnviroSize;
@@ -654,10 +653,10 @@
DPRINT("BasepInitializeEnvironment\n");
/* Get the full path name */
- RetVal = GetFullPathNameW(ApplicationPathName,
- MAX_PATH,
- FullPath,
- &Remaining);
+ GetFullPathNameW(ApplicationPathName,
+ MAX_PATH,
+ FullPath,
+ &Remaining);
DPRINT("ApplicationPathName: %S, FullPath: %S\n", ApplicationPathName,
FullPath);
Modified: trunk/reactos/drivers/bus/acpi/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/CMakeList…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/CMakeLists.txt [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -125,6 +125,7 @@
acpica/utilities/uttrack.c
acpica/utilities/utxface.c)
+allow_warnings(acpica)
add_dependencies(acpica bugcodes)
add_library(acpi SHARED
Modified: trunk/reactos/drivers/filesystems/npfs/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs/c…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs/create.c [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -748,7 +748,7 @@
NpfsCleanup(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
- PNPFS_VCB Vcb;
+ //PNPFS_VCB Vcb;
PIO_STACK_LOCATION IoStack;
PFILE_OBJECT FileObject;
PNPFS_CCB Ccb, OtherSide;
@@ -758,7 +758,7 @@
DPRINT("NpfsCleanup(DeviceObject %p Irp %p)\n", DeviceObject, Irp);
IoStack = IoGetCurrentIrpStackLocation(Irp);
- Vcb = (PNPFS_VCB)DeviceObject->DeviceExtension;
+ //Vcb = (PNPFS_VCB)DeviceObject->DeviceExtension;
FileObject = IoStack->FileObject;
Ccb = FileObject->FsContext2;
@@ -909,7 +909,7 @@
{
PIO_STACK_LOCATION IoStack;
PFILE_OBJECT FileObject;
- PNPFS_VCB Vcb;
+ //PNPFS_VCB Vcb;
PNPFS_FCB Fcb;
PNPFS_CCB Ccb;
BOOLEAN Server;
@@ -917,7 +917,7 @@
DPRINT("NpfsClose(DeviceObject %p Irp %p)\n", DeviceObject, Irp);
IoStack = IoGetCurrentIrpStackLocation(Irp);
- Vcb = (PNPFS_VCB)DeviceObject->DeviceExtension;
+ //Vcb = (PNPFS_VCB)DeviceObject->DeviceExtension;
FileObject = IoStack->FileObject;
Ccb = FileObject->FsContext2;
Modified: trunk/reactos/drivers/filesystems/npfs/dirctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs/d…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs/dirctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs/dirctl.c [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -286,7 +286,7 @@
PIO_STACK_LOCATION IoStack;
PFILE_OBJECT FileObject;
PNPFS_CCB Ccb;
- PNPFS_FCB Fcb;
+ //PNPFS_FCB Fcb;
NTSTATUS Status;
ULONG Size = 0;
@@ -308,7 +308,7 @@
return Status;
}
- Fcb = Ccb->Fcb;
+ //Fcb = Ccb->Fcb;
switch (IoStack->MinorFunction)
{
Modified: trunk/reactos/drivers/filesystems/npfs/finfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs/finfo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs/finfo.c [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -214,7 +214,7 @@
PIO_STACK_LOCATION IoStack;
FILE_INFORMATION_CLASS FileInformationClass;
PFILE_OBJECT FileObject;
- PNPFS_VCB Vcb;
+ //PNPFS_VCB Vcb;
PNPFS_FCB Fcb;
PNPFS_CCB Ccb;
PVOID SystemBuffer;
@@ -225,7 +225,7 @@
IoStack = IoGetCurrentIrpStackLocation (Irp);
FileInformationClass = IoStack->Parameters.QueryFile.FileInformationClass;
- Vcb = (PNPFS_VCB)DeviceObject->DeviceExtension;
+ //Vcb = (PNPFS_VCB)DeviceObject->DeviceExtension;
FileObject = IoStack->FileObject;
Ccb = (PNPFS_CCB)FileObject->FsContext2;
Fcb = Ccb->Fcb;
Modified: trunk/reactos/drivers/filesystems/npfs/fsctrl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs/fsctrl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs/fsctrl.c [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -557,7 +557,7 @@
ULONG OutputBufferLength;
ULONG ReturnLength = 0;
PFILE_PIPE_PEEK_BUFFER Reply;
- PNPFS_FCB Fcb;
+ //PNPFS_FCB Fcb;
PNPFS_CCB Ccb;
NTSTATUS Status;
ULONG MessageCount = 0;
@@ -579,7 +579,7 @@
Ccb = IoStack->FileObject->FsContext2;
Reply = (PFILE_PIPE_PEEK_BUFFER)Irp->AssociatedIrp.SystemBuffer;
- Fcb = Ccb->Fcb;
+ //Fcb = Ccb->Fcb;
Reply->NamedPipeState = Ccb->PipeState;
@@ -667,13 +667,13 @@
PIO_STACK_LOCATION IoStack;
PFILE_OBJECT FileObject;
NTSTATUS Status;
- PNPFS_VCB Vcb;
+ //PNPFS_VCB Vcb;
PNPFS_FCB Fcb;
PNPFS_CCB Ccb;
DPRINT("NpfsFileSystemContol(DeviceObject %p Irp %p)\n", DeviceObject,
Irp);
- Vcb = (PNPFS_VCB)DeviceObject->DeviceExtension;
+ //Vcb = (PNPFS_VCB)DeviceObject->DeviceExtension;
IoStack = IoGetCurrentIrpStackLocation(Irp);
DPRINT("IoStack: %p\n", IoStack);
FileObject = IoStack->FileObject;
Modified: trunk/reactos/drivers/filesystems/npfs/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs/r…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs/rw.c [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -818,8 +818,9 @@
ExAcquireFastMutex(&ReaderCcb->DataListLock);
+ DPRINT("Length %d Buffer %x Offset %x\n",Length,Buffer,Offset);
+
#ifndef NDEBUG
- DPRINT("Length %d Buffer %x Offset %x\n",Length,Buffer,Offset);
HexDump(Buffer, Length);
#endif
Modified: trunk/reactos/drivers/filesystems/ntfs/dirctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/d…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/dirctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/dirctl.c [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -481,40 +481,39 @@
NtfsQueryDirectory(PNTFS_IRP_CONTEXT IrpContext)
{
PIRP Irp;
- PDEVICE_OBJECT DeviceObject;
- PDEVICE_EXTENSION DeviceExtension;
- LONG BufferLength = 0;
+ //PDEVICE_OBJECT DeviceObject;
+ //PDEVICE_EXTENSION DeviceExtension;
+ //LONG BufferLength = 0;
PUNICODE_STRING SearchPattern = NULL;
- FILE_INFORMATION_CLASS FileInformationClass;
+ //FILE_INFORMATION_CLASS FileInformationClass;
ULONG FileIndex = 0;
PUCHAR Buffer = NULL;
PFILE_NAMES_INFORMATION Buffer0 = NULL;
- PNTFS_FCB Fcb;
+ //PNTFS_FCB Fcb;
PNTFS_CCB Ccb;
// FCB TempFcb;
BOOLEAN First = FALSE;
PIO_STACK_LOCATION Stack;
PFILE_OBJECT FileObject;
- NTSTATUS Status = STATUS_SUCCESS;
+ //NTSTATUS Status = STATUS_SUCCESS;
DPRINT1("NtfsQueryDirectory() called\n");
ASSERT(IrpContext);
Irp = IrpContext->Irp;
- DeviceObject = IrpContext->DeviceObject;
-
- DeviceExtension = DeviceObject->DeviceExtension;
+ //DeviceObject = IrpContext->DeviceObject;
+
+ //DeviceExtension = DeviceObject->DeviceExtension;
Stack = IoGetCurrentIrpStackLocation(Irp);
FileObject = Stack->FileObject;
Ccb = (PNTFS_CCB)FileObject->FsContext2;
- Fcb = (PNTFS_FCB)FileObject->FsContext;
+ //Fcb = (PNTFS_FCB)FileObject->FsContext;
/* Obtain the callers parameters */
- BufferLength = Stack->Parameters.QueryDirectory.Length;
+ //BufferLength = Stack->Parameters.QueryDirectory.Length;
SearchPattern = Stack->Parameters.QueryDirectory.FileName;
- FileInformationClass =
- Stack->Parameters.QueryDirectory.FileInformationClass;
+ //FileInformationClass = Stack->Parameters.QueryDirectory.FileInformationClass;
FileIndex = Stack->Parameters.QueryDirectory.FileIndex;
@@ -664,7 +663,7 @@
if (FileIndex > 0)
{
- Status = STATUS_SUCCESS;
+ //Status = STATUS_SUCCESS;
}
// return(Status);
Modified: trunk/reactos/drivers/input/mouclass/mouclass.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/mouclass/mou…
==============================================================================
--- trunk/reactos/drivers/input/mouclass/mouclass.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/input/mouclass/mouclass.c [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -119,7 +119,7 @@
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
{
- PCLASS_DEVICE_EXTENSION DeviceExtension;
+ //PCLASS_DEVICE_EXTENSION DeviceExtension;
NTSTATUS Status = STATUS_NOT_SUPPORTED;
TRACE_(CLASS_NAME, "IRP_MJ_DEVICE_CONTROL\n");
@@ -127,7 +127,7 @@
if (!((PCOMMON_DEVICE_EXTENSION)DeviceObject->DeviceExtension)->IsClassDO)
return ForwardIrpAndForget(DeviceObject, Irp);
- DeviceExtension = (PCLASS_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
+ //DeviceExtension = (PCLASS_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
switch (IoGetCurrentIrpStackLocation(Irp)->Parameters.DeviceIoControl.IoControlCode)
{
Modified: trunk/reactos/drivers/ksfilter/ks/api.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/api.c?…
==============================================================================
--- trunk/reactos/drivers/ksfilter/ks/api.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/ksfilter/ks/api.c [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -68,18 +68,17 @@
IN KSDEVICE_HEADER DevHeader,
IN BOOLEAN Exclusive)
{
- NTSTATUS Status;
PKSIDEVICE_HEADER Header = (PKSIDEVICE_HEADER)DevHeader;
KeEnterCriticalRegion();
if (Exclusive)
{
- Status = ExAcquireResourceExclusiveLite(&Header->SecurityLock, TRUE);
+ ExAcquireResourceExclusiveLite(&Header->SecurityLock, TRUE);
}
else
{
- Status = ExAcquireResourceSharedLite(&Header->SecurityLock, TRUE);
+ ExAcquireResourceSharedLite(&Header->SecurityLock, TRUE);
}
}
@@ -169,12 +168,12 @@
PDEVICE_EXTENSION DeviceExtension;
PKSIDEVICE_HEADER DeviceHeader;
PKSIOBJECT_HEADER ObjectHeader;
- PIO_STACK_LOCATION IoStack;
+ //PIO_STACK_LOCATION IoStack;
PLIST_ENTRY ListEntry;
NTSTATUS Status;
/* get current irp stack */
- IoStack = IoGetCurrentIrpStackLocation(Irp);
+ //IoStack = IoGetCurrentIrpStackLocation(Irp);
/* caller wants to add the target device */
DeviceExtension = (PDEVICE_EXTENSION)DeviceObject->DeviceExtension;
@@ -229,11 +228,11 @@
{
PDEVICE_EXTENSION DeviceExtension;
PKSIDEVICE_HEADER DeviceHeader;
- PIO_STACK_LOCATION IoStack;
+ //PIO_STACK_LOCATION IoStack;
NTSTATUS Status;
/* get current irp stack */
- IoStack = IoGetCurrentIrpStackLocation(Irp);
+ //IoStack = IoGetCurrentIrpStackLocation(Irp);
/* caller wants to add the target device */
DeviceExtension = (PDEVICE_EXTENSION)DeviceObject->DeviceExtension;
@@ -615,9 +614,9 @@
{
PIO_STACK_LOCATION IoStack;
PDEVICE_EXTENSION DeviceExtension;
- PKSIDEVICE_HEADER DeviceHeader;
+ //PKSIDEVICE_HEADER DeviceHeader;
PKSIOBJECT_HEADER ObjectHeader;
- PKSOBJECT_CREATE_ITEM CreateItem;
+ //PKSOBJECT_CREATE_ITEM CreateItem;
NTSTATUS Status;
if (!Header)
@@ -634,7 +633,7 @@
/* get device extension */
DeviceExtension = (PDEVICE_EXTENSION)IoStack->DeviceObject->DeviceExtension;
/* get device header */
- DeviceHeader = DeviceExtension->DeviceHeader;
+ //DeviceHeader = DeviceExtension->DeviceHeader;
/* sanity check */
ASSERT(IoStack->FileObject);
@@ -652,7 +651,7 @@
InitializeListHead(&ObjectHeader->ItemList);
/* get create item */
- CreateItem = KSCREATE_ITEM_IRP_STORAGE(Irp);
+ //CreateItem = KSCREATE_ITEM_IRP_STORAGE(Irp);
/* do we have a name */
if (IoStack->FileObject->FileName.Buffer)
Modified: trunk/reactos/drivers/network/afd/afd/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/ma…
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/main.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/afd/main.c [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -272,9 +272,10 @@
PAFD_DEVICE_EXTENSION DeviceExt;
PFILE_FULL_EA_INFORMATION EaInfo;
PAFD_CREATE_PACKET ConnectInfo = NULL;
- ULONG EaLength;
+ //ULONG EaLength;
PWCHAR EaInfoValue = NULL;
- UINT Disposition, i;
+ //UINT Disposition;
+ UINT i;
NTSTATUS Status = STATUS_SUCCESS;
AFD_DbgPrint(MID_TRACE,
@@ -282,7 +283,7 @@
DeviceExt = DeviceObject->DeviceExtension;
FileObject = IrpSp->FileObject;
- Disposition = (IrpSp->Parameters.Create.Options >> 24) & 0xff;
+ //Disposition = (IrpSp->Parameters.Create.Options >> 24) & 0xff;
Irp->IoStatus.Information = 0;
@@ -292,9 +293,7 @@
ConnectInfo = (PAFD_CREATE_PACKET)(EaInfo->EaName + EaInfo->EaNameLength + 1);
EaInfoValue = (PWCHAR)(((PCHAR)ConnectInfo) + sizeof(AFD_CREATE_PACKET));
- EaLength = sizeof(FILE_FULL_EA_INFORMATION) +
- EaInfo->EaNameLength +
- EaInfo->EaValueLength;
+ //EaLength = sizeof(FILE_FULL_EA_INFORMATION) + EaInfo->EaNameLength +
EaInfo->EaValueLength;
AFD_DbgPrint(MID_TRACE,("EaInfo: %x, EaInfoValue: %x\n",
EaInfo, EaInfoValue));
Modified: trunk/reactos/drivers/network/tcpip/datalink/lan.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/data…
==============================================================================
--- trunk/reactos/drivers/network/tcpip/datalink/lan.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/tcpip/datalink/lan.c [iso-8859-1] Sun Sep 11 15:39:19
2011
@@ -371,7 +371,7 @@
USHORT EType;
UINT PacketType, BytesTransferred;
UINT temp;
- IP_PACKET IPPacket;
+ //IP_PACKET IPPacket;
PCHAR BufferData;
NDIS_STATUS NdisStatus;
PNDIS_PACKET NdisPacket;
@@ -426,8 +426,8 @@
GetDataPtr( NdisPacket, 0, &BufferData, &temp );
- IPPacket.NdisPacket = NdisPacket;
- IPPacket.Position = 0;
+ //IPPacket.NdisPacket = NdisPacket;
+ //IPPacket.Position = 0;
TransferDataCalled++;
Modified: trunk/reactos/hal/halx86/legacy/halpnpdd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/legacy/halpnpdd…
==============================================================================
--- trunk/reactos/hal/halx86/legacy/halpnpdd.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/legacy/halpnpdd.c [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -284,12 +284,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)
{
@@ -346,7 +346,7 @@
PCM_RESOURCE_LIST ResourceList;
// PIO_RESOURCE_REQUIREMENTS_LIST RequirementsList;
// PIO_RESOURCE_DESCRIPTOR Descriptor;
- PCM_PARTIAL_RESOURCE_DESCRIPTOR PartialDesc;
+// PCM_PARTIAL_RESOURCE_DESCRIPTOR PartialDesc;
// ULONG i;
PAGED_CODE();
@@ -385,7 +385,7 @@
ResourceList->List[0].PartialResourceList.Count = 0;
/* Setup the first descriptor */
- PartialDesc = ResourceList->List[0].PartialResourceList.PartialDescriptors;
+ //PartialDesc = ResourceList->List[0].PartialResourceList.PartialDescriptors;
/* Find the requirement descriptor for the SCI */
#if 0
@@ -627,7 +627,7 @@
IN PIRP Irp)
{
PIO_STACK_LOCATION IoStackLocation;
- PPDO_EXTENSION PdoExtension;
+ //PPDO_EXTENSION PdoExtension;
PFDO_EXTENSION FdoExtension;
NTSTATUS Status;
UCHAR Minor;
@@ -698,7 +698,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;
Modified: trunk/reactos/lib/3rdparty/cardlib/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/cardlib/CMake…
==============================================================================
--- trunk/reactos/lib/3rdparty/cardlib/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/lib/3rdparty/cardlib/CMakeLists.txt [iso-8859-1] Sun Sep 11 15:39:19
2011
@@ -15,4 +15,5 @@
dropzone.cpp)
add_library(cardlib ${SOURCE})
+allow_warnings(cardlib)
add_dependencies(cardlib psdk)
Modified: trunk/reactos/lib/drivers/ip/transport/datagram/datagram.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ip/transport/d…
==============================================================================
--- trunk/reactos/lib/drivers/ip/transport/datagram/datagram.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/ip/transport/datagram/datagram.c [iso-8859-1] Sun Sep 11
15:39:19 2011
@@ -193,6 +193,9 @@
DataBuffer,
NULL);
+ if (STATUS_SUCCESS != Status)
+ TI_DbgPrint(MAX_TRACE, ("receive handler signaled failure with Status
0x%x\n", Status));
+
DereferenceObject(AddrFile);
}
else
Modified: trunk/reactos/lib/fslib/vfatlib/check/check.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/vfatlib/check/ch…
==============================================================================
--- trunk/reactos/lib/fslib/vfatlib/check/check.c [iso-8859-1] (original)
+++ trunk/reactos/lib/fslib/vfatlib/check/check.c [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -280,16 +280,17 @@
static void truncate_file(DOS_FS *fs,DOS_FILE *file,unsigned long clusters)
{
int deleting;
- unsigned long walk,next,prev;
+ unsigned long walk,next;
+ //unsigned long prev;
walk = FSTART(file,fs);
- prev = 0;
+ //prev = 0;
if ((deleting = !clusters)) MODIFY_START(file,0,fs);
while (walk > 0 && walk != -1) {
next = next_cluster(fs,walk);
if (deleting) set_fat(fs,walk,0);
else if ((deleting = !--clusters)) set_fat(fs,walk,-1);
- prev = walk;
+ //prev = walk;
walk = next;
}
}
Modified: trunk/reactos/lib/pseh/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/pseh/CMakeLists.txt?re…
==============================================================================
--- trunk/reactos/lib/pseh/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/lib/pseh/CMakeLists.txt [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -14,6 +14,7 @@
endif()
add_library(pseh ${SOURCE})
+ allow_warnings(pseh)
target_link_libraries(pseh chkstk)
add_dependencies(pseh psdk)
Modified: trunk/reactos/lib/sdk/crt/wine/undname.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/wine/undname.c…
==============================================================================
--- trunk/reactos/lib/sdk/crt/wine/undname.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/wine/undname.c [iso-8859-1] Sun Sep 11 15:39:19 2011
@@ -216,7 +216,8 @@
c = '>';
if (i < a->start) c = '-';
else if (i >= a->num) c = '}';
- TRACE("%p\t%d%c %s\n", a, i, c, a->elts[i]);
+ /* This check is as useless as the unused-but-set gcc warning that we want to
silence here */
+ if (c != 0) TRACE("%p\t%d%c %s\n", a, i, c, a->elts[i]);
}
}