fix: Resolve warnings in multiple components

This commit is contained in:
Daniel Hammer
2025-03-08 00:19:16 +01:00
parent 88f7862a53
commit 04087ff188
5 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
#include "Panic.hpp"
void Panic(const char *meditationString, System::Registers registers) {
void Panic(const char *meditationString, System::Registers) {
kerr << "=========== Kernel panic ===========" << Kt::newline;
kerr << meditationString << Kt::newline;
+5
View File
@@ -13,6 +13,11 @@ void* operator new(std::size_t size)
}
void operator delete(void* block)
{
Memory::g_heap->Free(block);
}
void operator delete(void* block, long unsigned int)
{
Memory::g_heap->Free(block);
}
+2
View File
@@ -74,6 +74,8 @@ kcp::cstringstream& kcp::cstringstream::operator<<(uint64_t val) {
kcp::cstringstream& kcp::cstringstream::operator<<(base nb)
{
current_base = nb;
return *this;
}
const char* kcp::cstringstream::cstr() {
+1 -1
View File
@@ -56,7 +56,7 @@ namespace Memory
BlockDescriptor* descriptor {(BlockDescriptor *)current_block_ptr};
descriptor->block_size = size;
void* block_start = (void *)(uint64_t)current_block_ptr + descriptor_size;
void* block_start = (void *)((uint64_t)current_block_ptr + descriptor_size);
if (!block_copy.size) {
current_prev_ptr->next = block_copy.next;
+2 -2
View File
@@ -29,8 +29,8 @@ namespace Memory {
uint64_t HHDMBase;
};
KernelOutStream kout;
KernelErrorStream kerr;
KernelOutStream kout{};
KernelErrorStream kerr{};
// Extern declarations for global constructors array.
extern void (*__init_array[])();