fix: Resolve warnings in multiple components
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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() {
|
||||
|
||||
@@ -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
@@ -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[])();
|
||||
|
||||
Reference in New Issue
Block a user