Author: akhaldi
Date: Wed Jul 24 15:24:41 2013
New Revision: 59569
URL:
http://svn.reactos.org/svn/reactos?rev=59569&view=rev
Log:
[NTFS]
* Properly mark some unreferenced parameters as such.
Modified:
trunk/reactos/drivers/filesystems/ntfs/fastio.c
trunk/reactos/drivers/filesystems/ntfs/fcb.c
trunk/reactos/drivers/filesystems/ntfs/finfo.c
trunk/reactos/drivers/filesystems/ntfs/fsctl.c
trunk/reactos/drivers/filesystems/ntfs/mft.c
trunk/reactos/drivers/filesystems/ntfs/rw.c
trunk/reactos/drivers/filesystems/ntfs/volinfo.c
Modified: trunk/reactos/drivers/filesystems/ntfs/fastio.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/fastio.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/fastio.c [iso-8859-1] Wed Jul 24 15:24:41 2013
@@ -40,6 +40,8 @@
NtfsAcqLazyWrite(PVOID Context,
BOOLEAN Wait)
{
+ UNREFERENCED_PARAMETER(Context);
+ UNREFERENCED_PARAMETER(Wait);
UNIMPLEMENTED;
return FALSE;
}
@@ -49,6 +51,7 @@
NTAPI
NtfsRelLazyWrite(PVOID Context)
{
+ UNREFERENCED_PARAMETER(Context);
UNIMPLEMENTED;
}
@@ -58,6 +61,8 @@
NtfsAcqReadAhead(PVOID Context,
BOOLEAN Wait)
{
+ UNREFERENCED_PARAMETER(Context);
+ UNREFERENCED_PARAMETER(Wait);
UNIMPLEMENTED;
return FALSE;
}
@@ -67,6 +72,7 @@
NTAPI
NtfsRelReadAhead(PVOID Context)
{
+ UNREFERENCED_PARAMETER(Context);
UNIMPLEMENTED;
}
Modified: trunk/reactos/drivers/filesystems/ntfs/fcb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/fcb.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/fcb.c [iso-8859-1] Wed Jul 24 15:24:41 2013
@@ -124,6 +124,7 @@
BOOLEAN
NtfsFCBIsDirectory(PNTFS_FCB Fcb)
{
+ UNREFERENCED_PARAMETER(Fcb);
// return(Fcb->entry.Attrib & FILE_ATTRIBUTE_DIRECTORY);
// return(Fcb->Entry.FileFlags & 0x02);
return TRUE;
@@ -555,6 +556,11 @@
}
CcUnpinData(Context);
+#else
+ UNREFERENCED_PARAMETER(Vcb);
+ UNREFERENCED_PARAMETER(DirectoryFcb);
+ UNREFERENCED_PARAMETER(FileToFind);
+ UNREFERENCED_PARAMETER(FoundFCB);
#endif
return STATUS_OBJECT_NAME_NOT_FOUND;
}
Modified: trunk/reactos/drivers/filesystems/ntfs/finfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/finfo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/finfo.c [iso-8859-1] Wed Jul 24 15:24:41 2013
@@ -45,6 +45,8 @@
PFILE_STANDARD_INFORMATION StandardInfo,
PULONG BufferLength)
{
+ UNREFERENCED_PARAMETER(DeviceObject);
+
DPRINT("NtfsGetStandardInformation() called\n");
if (*BufferLength < sizeof(FILE_STANDARD_INFORMATION))
@@ -75,6 +77,8 @@
PFILE_POSITION_INFORMATION PositionInfo,
PULONG BufferLength)
{
+ UNREFERENCED_PARAMETER(FileObject);
+
DPRINT("NtfsGetPositionInformation() called\n");
if (*BufferLength < sizeof(FILE_POSITION_INFORMATION))
@@ -117,6 +121,11 @@
CdfsFileFlagsToAttributes(Fcb,
&BasicInfo->FileAttributes);
+#else
+ UNREFERENCED_PARAMETER(FileObject);
+ UNREFERENCED_PARAMETER(Fcb);
+ UNREFERENCED_PARAMETER(DeviceObject);
+ UNREFERENCED_PARAMETER(BasicInfo);
#endif
*BufferLength -= sizeof(FILE_BASIC_INFORMATION);
@@ -137,6 +146,9 @@
PULONG BufferLength)
{
ULONG NameLength;
+
+ UNREFERENCED_PARAMETER(FileObject);
+ UNREFERENCED_PARAMETER(DeviceObject);
DPRINT("NtfsGetNameInformation() called\n");
Modified: trunk/reactos/drivers/filesystems/ntfs/fsctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] Wed Jul 24 15:24:41 2013
@@ -485,6 +485,8 @@
NtfsVerifyVolume(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
+ UNREFERENCED_PARAMETER(DeviceObject);
+ UNREFERENCED_PARAMETER(Irp);
DPRINT1("NtfsVerifyVolume() called\n");
return STATUS_WRONG_VOLUME;
}
Modified: trunk/reactos/drivers/filesystems/ntfs/mft.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/m…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/mft.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/mft.c [iso-8859-1] Wed Jul 24 15:24:41 2013
@@ -126,6 +126,8 @@
{
PATTRIBUTE Attribute;
+ UNREFERENCED_PARAMETER(name);
+
Attribute = (PATTRIBUTE)((ULONG_PTR)FileRecord + FileRecord->AttributeOffset);
while (Attribute < (PATTRIBUTE)((ULONG_PTR)FileRecord + FileRecord->BytesInUse)
&&
Attribute->AttributeType != (ATTRIBUTE_TYPE)-1)
@@ -173,6 +175,9 @@
PDEVICE_OBJECT DeviceObject)
{
PNONRESIDENT_ATTRIBUTE NresAttr = (PNONRESIDENT_ATTRIBUTE)attr;
+
+ UNREFERENCED_PARAMETER(DeviceObject);
+
if (attr->Nonresident == FALSE)
{
memcpy(buffer,
Modified: trunk/reactos/drivers/filesystems/ntfs/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/r…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/rw.c [iso-8859-1] Wed Jul 24 15:24:41 2013
@@ -123,6 +123,12 @@
return(Status);
#else
+ UNREFERENCED_PARAMETER(DeviceExt);
+ UNREFERENCED_PARAMETER(FileObject);
+ UNREFERENCED_PARAMETER(Buffer);
+ UNREFERENCED_PARAMETER(Length);
+ UNREFERENCED_PARAMETER(ReadOffset);
+ UNREFERENCED_PARAMETER(IrpFlags);
*LengthRead = 0;
return STATUS_END_OF_FILE;
#endif
Modified: trunk/reactos/drivers/filesystems/ntfs/volinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/v…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/volinfo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/volinfo.c [iso-8859-1] Wed Jul 24 15:24:41
2013
@@ -84,6 +84,8 @@
PFILE_FS_ATTRIBUTE_INFORMATION FsAttributeInfo,
PULONG BufferLength)
{
+ UNREFERENCED_PARAMETER(DeviceExt);
+
DPRINT("NtfsGetFsAttributeInformation()\n");
DPRINT("FsAttributeInfo = %p\n", FsAttributeInfo);
DPRINT("BufferLength %lu\n", *BufferLength);