https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9b74e5ed4ff49d162b8416d5e365857754299538

commit 9b74e5ed4ff49d162b8416d5e365857754299538
Author:     Jérôme Gardou <[email protected]>
AuthorDate: Fri Oct 23 11:30:42 2020 +0200
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Wed Feb 3 09:41:21 2021 +0100

    [NTOSKRNL] Do not compile unused code
---
 ntoskrnl/cache/section/data.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ntoskrnl/cache/section/data.c b/ntoskrnl/cache/section/data.c
index 1fb0fc20c56..b7649dd1f62 100644
--- a/ntoskrnl/cache/section/data.c
+++ b/ntoskrnl/cache/section/data.c
@@ -303,6 +303,7 @@ MmFinalizeSegment(PMM_SECTION_SEGMENT Segment)
     ExFreePoolWithTag(Segment, TAG_MM_SECTION_SEGMENT);
 }
 
+#ifdef NEWCC
 NTSTATUS
 NTAPI
 MmCreateCacheSection(PROS_SECTION_OBJECT *SectionObject,
@@ -533,6 +534,7 @@ MmCreateCacheSection(PROS_SECTION_OBJECT *SectionObject,
     *SectionObject = Section;
     return STATUS_SUCCESS;
 }
+#endif
 
 NTSTATUS
 NTAPI

Reply via email to