mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +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
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue