mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 00:43:21 +00:00
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:
parent
85de27e4af
commit
003e7d8a1b
|
@ -986,6 +986,9 @@ MiGetPfnEntry(IN PFN_TYPE Pfn)
|
||||||
extern PPHYSICAL_PAGE MmPageArray;
|
extern PPHYSICAL_PAGE MmPageArray;
|
||||||
extern ULONG MmPageArraySize;
|
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 */
|
/* Make sure the PFN number is valid */
|
||||||
ASSERT(Pfn <= MmPageArraySize);
|
ASSERT(Pfn <= MmPageArraySize);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue