os/pixel_rgba: inherit alignment of storage type

This avoids the compiler warning "address-of-packed-member" when
casting a Pixel_rgb888 pointer to an uint32_t pointer on 64-bit ARM.
This commit is contained in:
Norman Feske 2025-01-25 15:29:07 +01:00
parent 5076554f20
commit 526ea05821

View File

@ -35,7 +35,7 @@ template <typename ST, Genode::Surface_base::Pixel_format FORMAT,
int G_MASK, int G_SHIFT,
int B_MASK, int B_SHIFT,
int A_MASK, int A_SHIFT>
class Genode::Pixel_rgba
class alignas(alignof(ST)) Genode::Pixel_rgba
{
private: