From c3856eddb5a8146751dac82ad1ba4433f5ca6d6d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 11 Apr 2025 17:51:19 +0200 Subject: tweak kernel, boot: use -Wall, -Werror, -Wpedantic now. Signed-off-by: Amlal El Mahrouss --- dev/boot/src/BootThread.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dev/boot/src/BootThread.cc') diff --git a/dev/boot/src/BootThread.cc b/dev/boot/src/BootThread.cc index ee70812f..ce691f96 100644 --- a/dev/boot/src/BootThread.cc +++ b/dev/boot/src/BootThread.cc @@ -25,7 +25,7 @@ namespace Boot EXTERN_C Int32 rt_jump_to_address(VoidPtr code, HEL::BootInfoHeader* handover, UInt8* stack); BootThread::BootThread(VoidPtr blob) - : fBlob(blob), fStartAddress(nullptr) + : fStartAddress(nullptr), fBlob(blob) { // detect the format. const Char* blob_bytes = reinterpret_cast(fBlob); @@ -84,7 +84,6 @@ namespace Boot constexpr auto sectionForCode = ".text"; constexpr auto sectionForBootZ = ".ldr"; - constexpr auto sectionForBSS = ".bss"; for (SizeT sectIndex = 0; sectIndex < numSecs; ++sectIndex) { @@ -168,6 +167,8 @@ namespace Boot Int32 BootThread::Start(HEL::BootInfoHeader* handover, Bool own_stack) { HEL::HandoverProc err_fn = [](HEL::BootInfoHeader* rcx) -> Int32 { + NE_UNUSED(rcx); + fb_render_string("BootZ: Invalid Boot Image...", 50, 10, RGB(0xFF, 0xFF, 0xFF)); ::Boot::Stop(); -- cgit v1.2.3