From: Colin Finck Date: Mon, 12 May 2008 20:48:48 +0000 (+0000) Subject: Fix the Release build by marking MmPageArraySize as unreferenced. X-Git-Tag: ReactOS-0.3.5~590 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=003e7d8a1be94c1e4ad434f1d67af02e1c271ac1 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 --- diff --git a/reactos/ntoskrnl/include/internal/mm.h b/reactos/ntoskrnl/include/internal/mm.h index b102d943f8f..39686a1dc24 100644 --- a/reactos/ntoskrnl/include/internal/mm.h +++ b/reactos/ntoskrnl/include/internal/mm.h @@ -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);