mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
Fixed compiler warnings
This commit is contained in:
@ -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;
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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); }
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user