Fixed compiler warnings

This commit is contained in:
Alex
2022-12-21 20:05:57 +02:00
parent 48e8f0c513
commit cddf0426e3
28 changed files with 483 additions and 81 deletions

View File

@ -546,6 +546,12 @@ namespace CPU
asmv("cpuid"
: "=a"(*eax), "=b"(*ebx), "=c"(*ecx), "=d"(*edx)
: "a"(Function));
#else
UNUSED(Function);
UNUSED(eax);
UNUSED(ebx);
UNUSED(ecx);
UNUSED(edx);
#endif
}
@ -556,9 +562,11 @@ namespace CPU
:
: "r"(Address)
: "memory");
#else
UNUSED(Address);
#endif
}
/** @brief EXPERIMENTAL IMPLEMENTATION */
namespace Intel
{
@ -3066,7 +3074,7 @@ namespace CPU
/* @brief Enable Protection Keys for Supervisor Mode Pages */
uint32_t PKS : 1;
/** @brief Reserved */
uint64_t Reserved2 : 7; // TODO: This could be wrong
uint64_t Reserved2 : 7; // TODO: This could be wrong
};
uint64_t raw;
} CR4;

View File

@ -94,8 +94,22 @@ namespace Disk
PartitionStyle Style = PartitionStyle::Unknown;
size_t Index = 0;
size_t Read(size_t Offset, size_t Count, uint8_t *Buffer) { return 0; }
size_t Write(size_t Offset, size_t Count, uint8_t *Buffer) { return 0; }
size_t Read(size_t Offset, size_t Count, uint8_t *Buffer)
{
return 0;
UNUSED(Offset);
UNUSED(Count);
UNUSED(Buffer);
}
size_t Write(size_t Offset, size_t Count, uint8_t *Buffer)
{
return 0;
UNUSED(Offset);
UNUSED(Count);
UNUSED(Buffer);
}
Partition() {}
~Partition() {}
};
@ -111,8 +125,22 @@ namespace Disk
bool MechanicalDisk = false;
size_t UniqueIdentifier = 0xdeadbeef;
size_t Read(size_t Offset, size_t Count, uint8_t *Buffer) { return 0; }
size_t Write(size_t Offset, size_t Count, uint8_t *Buffer) { return 0; }
size_t Read(size_t Offset, size_t Count, uint8_t *Buffer)
{
return 0;
UNUSED(Offset);
UNUSED(Count);
UNUSED(Buffer);
}
size_t Write(size_t Offset, size_t Count, uint8_t *Buffer)
{
return 0;
UNUSED(Offset);
UNUSED(Count);
UNUSED(Buffer);
}
Drive()
{ // TODO: Allocate buffer
}

View File

@ -58,12 +58,12 @@ namespace UniversalAsynchronousReceiverTransmitter
* @param Char the sent character.
*/
virtual void OnSent(uint8_t Char) {}
virtual void OnSent(uint8_t Char) { UNUSED(Char); }
/**
* @brief Called when a character is received.
* @param Char the received character.
*/
virtual void OnReceived(uint8_t Char) {}
virtual void OnReceived(uint8_t Char) { UNUSED(Char); }
};
}