From 9b890bf17f5f22d7d8ac06193d8b608db1691830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 3 Sep 2003 01:29:37 +0000 Subject: [PATCH] Now includes the util/kernel_cpp.h header. Fixed some warnings (unused variables). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4460 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/boot/loader/heap.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kernel/boot/loader/heap.cpp b/src/kernel/boot/loader/heap.cpp index d25f4d1e7f..4ec61f6e62 100644 --- a/src/kernel/boot/loader/heap.cpp +++ b/src/kernel/boot/loader/heap.cpp @@ -6,6 +6,7 @@ #include #include +#include #include #include @@ -46,7 +47,7 @@ struct free_chunk { static void *sHeapBase; -static uint32 sHeapSize, sMaxHeapSize, sAvailable; +static uint32 /*sHeapSize,*/ sMaxHeapSize, sAvailable; static free_chunk sFreeAnchor; @@ -121,7 +122,7 @@ free_chunk::Remove(free_chunk *previous) { if (previous == NULL) { // find the previous chunk in the list - free_chunk *chunk = sFreeAnchor.next, *last = &sFreeAnchor; + free_chunk *chunk = sFreeAnchor.next; while (chunk != NULL && chunk != this) { previous = chunk;