- Define UNREFERENCED_PARAMETER for cmlib when built as host and reapply 41455.
authorStefan Ginsberg <stefanginsberg@gmail.com>
Fri, 19 Jun 2009 16:05:16 +0000 (16:05 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Fri, 19 Jun 2009 16:05:16 +0000 (16:05 +0000)
svn path=/trunk/; revision=41470

reactos/lib/cmlib/cmlib.h
reactos/lib/cmlib/hivecell.c
reactos/lib/cmlib/hiveinit.c

index bdce33d..0538c79 100644 (file)
@@ -59,6 +59,7 @@
         IN PRTL_BITMAP BitMapHeader);
 
     #define RtlCheckBit(BMH,BP) (((((PLONG)(BMH)->Buffer)[(BP) / 32]) >> ((BP) % 32)) & 0x1)
+    #define UNREFERENCED_PARAMETER(P) {(P)=(P);}
 
     #define PKTHREAD PVOID
     #define PKGUARDED_MUTEX PVOID
index 845daaa..994ca98 100644 (file)
@@ -79,6 +79,7 @@ HvpGetCellFullSize(
    PHHIVE RegistryHive,
    PVOID Cell)
 {
+   UNREFERENCED_PARAMETER(RegistryHive);
    return ((PHCELL)Cell - 1)->Size;
 }
 
@@ -89,6 +90,8 @@ HvGetCellSize(IN PHHIVE Hive,
    PHCELL CellHeader;
    LONG Size;
 
+   UNREFERENCED_PARAMETER(Hive);
+
    CellHeader = (PHCELL)Address - 1;
    Size = CellHeader->Size * -1;
    Size -= sizeof(HCELL);
index 8dea06a..c043f26 100644 (file)
@@ -445,6 +445,9 @@ HvInitialize(
    NTSTATUS Status;
    PHHIVE Hive = RegistryHive;
 
+   UNREFERENCED_PARAMETER(HiveType);
+   UNREFERENCED_PARAMETER(FileName);
+
    /*
     * Create a new hive structure that will hold all the maintenance data.
     */