mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 03:45:24 +00:00
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:
parent
5076554f20
commit
526ea05821
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user