mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +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()
|
void IDEDiskDevice::initialize()
|
||||||
{
|
{
|
||||||
byte status;
|
|
||||||
|
|
||||||
status = IO::in8(IDE0_STATUS);
|
|
||||||
#ifdef DISK_DEBUG
|
#ifdef DISK_DEBUG
|
||||||
|
byte status = IO::in8(IDE0_STATUS);
|
||||||
kprintf("initial status: ");
|
kprintf("initial status: ");
|
||||||
print_ide_status(status);
|
print_ide_status(status);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -109,6 +109,7 @@ static inline InodeIdentifier to_parent_id(const InodeIdentifier& identifier)
|
||||||
case PDI_PID_fd:
|
case PDI_PID_fd:
|
||||||
return to_identifier(identifier.fsid(), PDI_PID, to_pid(identifier), FI_PID_fd);
|
return to_identifier(identifier.fsid(), PDI_PID, to_pid(identifier), FI_PID_fd);
|
||||||
}
|
}
|
||||||
|
ASSERT_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
|
@ -12,13 +12,14 @@ static dword time_slice_for(Process::Priority priority)
|
||||||
{
|
{
|
||||||
// One time slice unit == 1ms
|
// One time slice unit == 1ms
|
||||||
switch (priority) {
|
switch (priority) {
|
||||||
case Process::LowPriority:
|
|
||||||
return 5;
|
|
||||||
case Process::NormalPriority:
|
|
||||||
return 15;
|
|
||||||
case Process::HighPriority:
|
case Process::HighPriority:
|
||||||
return 50;
|
return 50;
|
||||||
|
case Process::NormalPriority:
|
||||||
|
return 15;
|
||||||
|
case Process::LowPriority:
|
||||||
|
return 5;
|
||||||
}
|
}
|
||||||
|
ASSERT_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
Process* current;
|
Process* current;
|
||||||
|
|
|
@ -282,7 +282,6 @@ void Painter::blit(const Point& position, const GraphicsBitmap& source, const Re
|
||||||
const int first_row = clipped_rect.top() - dst_rect.top();
|
const int first_row = clipped_rect.top() - dst_rect.top();
|
||||||
const int last_row = clipped_rect.bottom() - dst_rect.top();
|
const int last_row = clipped_rect.bottom() - dst_rect.top();
|
||||||
const int first_column = clipped_rect.left() - dst_rect.left();
|
const int first_column = clipped_rect.left() - dst_rect.left();
|
||||||
const int last_column = clipped_rect.right() - dst_rect.left();
|
|
||||||
RGBA32* dst = m_target->scanline(clipped_rect.y()) + clipped_rect.x();
|
RGBA32* dst = m_target->scanline(clipped_rect.y()) + clipped_rect.x();
|
||||||
const RGBA32* src = source.scanline(src_rect.top() + first_row) + src_rect.left() + first_column;
|
const RGBA32* src = source.scanline(src_rect.top() + first_row) + src_rect.left() + first_column;
|
||||||
const size_t dst_skip = m_target->width();
|
const size_t dst_skip = m_target->width();
|
||||||
|
|
|
@ -69,6 +69,7 @@ static GUI_MouseButton to_api(MouseButton button)
|
||||||
case MouseButton::Right: return GUI_MouseButton::Right;
|
case MouseButton::Right: return GUI_MouseButton::Right;
|
||||||
case MouseButton::Middle: return GUI_MouseButton::Middle;
|
case MouseButton::Middle: return GUI_MouseButton::Middle;
|
||||||
}
|
}
|
||||||
|
ASSERT_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WSWindow::on_message(WSMessage& message)
|
void WSWindow::on_message(WSMessage& message)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue