mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Fixed compiler warnings
This commit is contained in:
parent
62e1db5f39
commit
83d5397584
@ -88,7 +88,7 @@ namespace Disk
|
|||||||
// why there is NUL (\0) between every char?????
|
// why there is NUL (\0) between every char?????
|
||||||
char PartName[72];
|
char PartName[72];
|
||||||
memcpy(PartName, GPTPartition.Label, 72);
|
memcpy(PartName, GPTPartition.Label, 72);
|
||||||
for (char i = 0; i < 72; i++)
|
for (int i = 0; i < 72; i++)
|
||||||
if (PartName[i] == '\0')
|
if (PartName[i] == '\0')
|
||||||
PartName[i] = ' ';
|
PartName[i] = ' ';
|
||||||
PartName[71] = '\0';
|
PartName[71] = '\0';
|
||||||
|
@ -90,12 +90,12 @@ namespace Disk
|
|||||||
uint64_t EndLBA = 0xdeadbeef;
|
uint64_t EndLBA = 0xdeadbeef;
|
||||||
uint64_t Sectors = 0xdeadbeef;
|
uint64_t Sectors = 0xdeadbeef;
|
||||||
uint64_t Flags = 0xdeadbeef;
|
uint64_t Flags = 0xdeadbeef;
|
||||||
unsigned char Port = 0xdeadbeef;
|
unsigned char Port = 0;
|
||||||
PartitionStyle Style = PartitionStyle::Unknown;
|
PartitionStyle Style = PartitionStyle::Unknown;
|
||||||
size_t Index = 0;
|
size_t Index = 0;
|
||||||
|
|
||||||
uint64_t Read(uint64_t Offset, uint64_t Count, uint8_t *Buffer) {}
|
uint64_t Read(uint64_t Offset, uint64_t Count, uint8_t *Buffer) {return 0;}
|
||||||
uint64_t Write(uint64_t Offset, uint64_t Count, uint8_t *Buffer) {}
|
uint64_t Write(uint64_t Offset, uint64_t Count, uint8_t *Buffer) {return 0;}
|
||||||
Partition() {}
|
Partition() {}
|
||||||
~Partition() {}
|
~Partition() {}
|
||||||
};
|
};
|
||||||
@ -111,8 +111,8 @@ namespace Disk
|
|||||||
bool MechanicalDisk = false;
|
bool MechanicalDisk = false;
|
||||||
uint64_t UniqueIdentifier = 0xdeadbeef;
|
uint64_t UniqueIdentifier = 0xdeadbeef;
|
||||||
|
|
||||||
uint64_t Read(uint64_t Offset, uint64_t Count, uint8_t *Buffer) {}
|
uint64_t Read(uint64_t Offset, uint64_t Count, uint8_t *Buffer) {return 0;}
|
||||||
uint64_t Write(uint64_t Offset, uint64_t Count, uint8_t *Buffer) {}
|
uint64_t Write(uint64_t Offset, uint64_t Count, uint8_t *Buffer) {return 0;}
|
||||||
Drive()
|
Drive()
|
||||||
{ // TODO: Allocate buffer
|
{ // TODO: Allocate buffer
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user