mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:37:35 +00:00
Fix some compilation warnings.
This commit is contained in:
parent
f3c8821b0f
commit
7ce15f1c54
5 changed files with 8 additions and 8 deletions
|
@ -116,10 +116,8 @@ void IDEDiskDevice::handle_irq()
|
|||
|
||||
void IDEDiskDevice::initialize()
|
||||
{
|
||||
byte status;
|
||||
|
||||
status = IO::in8(IDE0_STATUS);
|
||||
#ifdef DISK_DEBUG
|
||||
byte status = IO::in8(IDE0_STATUS);
|
||||
kprintf("initial status: ");
|
||||
print_ide_status(status);
|
||||
#endif
|
||||
|
|
|
@ -109,6 +109,7 @@ static inline InodeIdentifier to_parent_id(const InodeIdentifier& identifier)
|
|||
case PDI_PID_fd:
|
||||
return to_identifier(identifier.fsid(), PDI_PID, to_pid(identifier), FI_PID_fd);
|
||||
}
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
|
|
@ -12,13 +12,14 @@ static dword time_slice_for(Process::Priority priority)
|
|||
{
|
||||
// One time slice unit == 1ms
|
||||
switch (priority) {
|
||||
case Process::LowPriority:
|
||||
return 5;
|
||||
case Process::NormalPriority:
|
||||
return 15;
|
||||
case Process::HighPriority:
|
||||
return 50;
|
||||
case Process::NormalPriority:
|
||||
return 15;
|
||||
case Process::LowPriority:
|
||||
return 5;
|
||||
}
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
Process* current;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue