fix: Resolve warnings in multiple components
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#include "Panic.hpp"
|
#include "Panic.hpp"
|
||||||
|
|
||||||
void Panic(const char *meditationString, System::Registers registers) {
|
void Panic(const char *meditationString, System::Registers) {
|
||||||
kerr << "=========== Kernel panic ===========" << Kt::newline;
|
kerr << "=========== Kernel panic ===========" << Kt::newline;
|
||||||
kerr << meditationString << Kt::newline;
|
kerr << meditationString << Kt::newline;
|
||||||
|
|
||||||
|
|||||||
@@ -16,3 +16,8 @@ void operator delete(void* block)
|
|||||||
{
|
{
|
||||||
Memory::g_heap->Free(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)
|
kcp::cstringstream& kcp::cstringstream::operator<<(base nb)
|
||||||
{
|
{
|
||||||
current_base = nb;
|
current_base = nb;
|
||||||
|
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* kcp::cstringstream::cstr() {
|
const char* kcp::cstringstream::cstr() {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ namespace Memory
|
|||||||
BlockDescriptor* descriptor {(BlockDescriptor *)current_block_ptr};
|
BlockDescriptor* descriptor {(BlockDescriptor *)current_block_ptr};
|
||||||
descriptor->block_size = size;
|
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) {
|
if (!block_copy.size) {
|
||||||
current_prev_ptr->next = block_copy.next;
|
current_prev_ptr->next = block_copy.next;
|
||||||
|
|||||||
+2
-2
@@ -29,8 +29,8 @@ namespace Memory {
|
|||||||
uint64_t HHDMBase;
|
uint64_t HHDMBase;
|
||||||
};
|
};
|
||||||
|
|
||||||
KernelOutStream kout;
|
KernelOutStream kout{};
|
||||||
KernelErrorStream kerr;
|
KernelErrorStream kerr{};
|
||||||
|
|
||||||
// Extern declarations for global constructors array.
|
// Extern declarations for global constructors array.
|
||||||
extern void (*__init_array[])();
|
extern void (*__init_array[])();
|
||||||
|
|||||||
Reference in New Issue
Block a user