BuildSystem/Kernel: Enable -Wextra and -Werror in kernel
Only needed to fix some unused variable bugs
This commit is contained in:
@@ -194,7 +194,7 @@ namespace Kernel
|
||||
return true;
|
||||
}
|
||||
|
||||
BAN::ErrorOr<BAN::UniqPtr<MemoryRegion>> FileBackedRegion::clone(PageTable& new_page_table)
|
||||
BAN::ErrorOr<BAN::UniqPtr<MemoryRegion>> FileBackedRegion::clone(PageTable&)
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
@@ -289,8 +289,11 @@ static constexpr bool is_power_of_two(size_t value)
|
||||
return (value & (value - 1)) == 0;
|
||||
}
|
||||
|
||||
void* kmalloc(size_t size, size_t align, bool force_indentity_map)
|
||||
void* kmalloc(size_t size, size_t align, bool force_identity_map)
|
||||
{
|
||||
// currently kmalloc is always identity mapped
|
||||
(void)force_identity_map;
|
||||
|
||||
const kmalloc_info& info = s_kmalloc_info;
|
||||
|
||||
ASSERT(is_power_of_two(align));
|
||||
|
||||
Reference in New Issue
Block a user