Fix the Release build by marking MmPageArraySize as unreferenced.

Changing the ASSERT, so that it doesn't spit out an "unused variable" warning on Release builds doesn't work, because then it expects this variable to exist. (which is not the case for some struct elements passed to ASSERT in some other parts of the kernel)

svn path=/trunk/; revision=33486
This commit is contained in:
Colin Finck 2008-05-12 20:48:48 +00:00
parent 85de27e4af
commit 003e7d8a1b

View file

@ -986,6 +986,9 @@ MiGetPfnEntry(IN PFN_TYPE Pfn)
extern PPHYSICAL_PAGE MmPageArray;
extern ULONG MmPageArraySize;
/* Mark MmPageArraySize as unreferenced, otherwise it will appear as an unused variable on a Release build */
UNREFERENCED_PARAMETER(MmPageArraySize);
/* Make sure the PFN number is valid */
ASSERT(Pfn <= MmPageArraySize);