Fix a bunch of compiler warnings. Not all, but a lot.

This commit is contained in:
Andreas Kling 2019-02-25 19:05:51 +01:00
parent 15fb917f28
commit 901b7d5d91
Notes: sideshowbarker 2024-07-19 15:38:02 +09:00
10 changed files with 29 additions and 191 deletions

View file

@ -353,7 +353,7 @@ void Painter::set_pixel(const Point& p, Color color)
m_target->scanline(point.y())[point.x()] = color.value();
}
[[gnu::always_inline]] void Painter::set_pixel_with_draw_op(dword& pixel, const Color& color)
[[gnu::always_inline]] inline void Painter::set_pixel_with_draw_op(dword& pixel, const Color& color)
{
if (m_draw_op == DrawOp::Copy)
pixel = color.value();